mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
Compare commits
21 Commits
master_new
...
250219-pre
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00d272c3d0 | ||
|
|
398bbc675b | ||
|
|
d0a6807d2c | ||
|
|
f01283f530 | ||
|
|
b9ec8ed534 | ||
|
|
5f9da5cf03 | ||
|
|
1b3064f2ab | ||
|
|
24be910b83 | ||
|
|
6153daa98a | ||
|
|
c5f6f5c83e | ||
|
|
4d0cae9346 | ||
|
|
5be181df8c | ||
|
|
67f2ff3e86 | ||
|
|
3588ef3e67 | ||
|
|
7fab8bb062 | ||
|
|
977af999a3 | ||
|
|
cc0362380e | ||
|
|
45027ca77e | ||
|
|
83838b2c1a | ||
|
|
acbacac737 | ||
|
|
6b6e8a4096 |
@@ -16,19 +16,19 @@ VUE_APP_CESOURCE_BASE_API = '/socialApi'
|
|||||||
VUE_APP_STAT_BASE_API = '/statApi'
|
VUE_APP_STAT_BASE_API = '/statApi'
|
||||||
|
|
||||||
# BOE系统网址
|
# BOE系统网址
|
||||||
VUE_APP_BOE_WEB_URL = 'https://u.boe.com'
|
VUE_APP_BOE_WEB_URL = 'http://10.251.132.75'
|
||||||
|
|
||||||
# BOE 移动端url
|
# BOE 移动端url
|
||||||
VUE_APP_BOE_MOBILE_URL = 'https://u.boe.com'
|
VUE_APP_BOE_MOBILE_URL = 'http://10.251.132.75'
|
||||||
|
|
||||||
# File路径的基础url
|
# File路径的基础url
|
||||||
VUE_APP_FILE_BASE_URL='https://u.boe.com/upload'
|
VUE_APP_FILE_BASE_URL='http://10.251.132.75/upload'
|
||||||
|
|
||||||
# File路径的基础url的相对路径,加此项是为了不影响之前的路径配置
|
# File路径的基础url的相对路径,加此项是为了不影响之前的路径配置
|
||||||
VUE_APP_FILE_RELATIVE_PATH = '/upload'
|
VUE_APP_FILE_RELATIVE_PATH = '/upload'
|
||||||
|
|
||||||
# 受众批量导入人员信息URL
|
# 受众批量导入人员信息URL
|
||||||
VUE_APP_AUDIENCE_IMPORT_URL = 'https://u.boe.com/userbasic/audience/import'
|
VUE_APP_AUDIENCE_IMPORT_URL = 'http://10.251.132.75/userbasic/audience/import'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -39,10 +39,10 @@ VUE_APP_STUDENT_PATH='/fe-student'
|
|||||||
VUE_APP_MANAGER_API_PATH='/manageApi'
|
VUE_APP_MANAGER_API_PATH='/manageApi'
|
||||||
|
|
||||||
# 登录地址
|
# 登录地址
|
||||||
VUE_APP_LOGIN_URL='https://u.boe.com/web/'
|
VUE_APP_LOGIN_URL='http://10.251.132.75/web/'
|
||||||
|
|
||||||
# scorm课件的播放url地址
|
# scorm课件的播放url地址
|
||||||
VUE_APP_SCORM_URL = 'https://u.boe.com/newscorm/scorm-player'
|
VUE_APP_SCORM_URL = 'http://10.251.132.75/newscorm/scorm-player'
|
||||||
|
|
||||||
#案例组织领域类型
|
#案例组织领域类型
|
||||||
VUE_APP_CASE_TYPE = '155'
|
VUE_APP_CASE_TYPE = '155'
|
||||||
|
|||||||
@@ -16,9 +16,9 @@
|
|||||||
<meta name="referrer" content="strict-origin-when-cross-origin"/>
|
<meta name="referrer" content="strict-origin-when-cross-origin"/>
|
||||||
<link rel="icon" href="<%= BASE_URL %>logo/favicon.ico">
|
<link rel="icon" href="<%= BASE_URL %>logo/favicon.ico">
|
||||||
<title>京东方大学堂</title>
|
<title>京东方大学堂</title>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
// if(window.top != window.self){
|
// if(window.top != window.self){
|
||||||
// window.top.location=window.self.location;
|
// window.top.location=window.self.location;
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/**我的授课记录*/
|
/**我的授课记录*/
|
||||||
import ajax from '@/api/boe/boeApiAjax.js'
|
import ajax from '@/api/boe/boeApiAjax.js'
|
||||||
|
import ajax2 from '@/api/unionAjax.js'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import { getToken } from '@/utils/token'
|
import { getToken } from '@/utils/token'
|
||||||
const baseURL = process.env.VUE_APP_BOE_BASE_API;
|
const baseURL = process.env.VUE_APP_BOE_BASE_API;
|
||||||
@@ -60,12 +61,15 @@ const exportStudentOfTearcher = function(userId) {
|
|||||||
const courseRecordList = function(data) {
|
const courseRecordList = function(data) {
|
||||||
return ajax.postJson('/b1/system/teacher/teacher-course-list',data);
|
return ajax.postJson('/b1/system/teacher/teacher-course-list',data);
|
||||||
}
|
}
|
||||||
|
const getListByToken = function(data) {
|
||||||
|
return ajax2.get('/manageApi',`/admin/teacherRecord/getListByToken?courseName=${data.courseName}&page=${data.page}&pageSize=${data.pageSize}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
courseRecordExport,
|
courseRecordExport,
|
||||||
courseRecordList,
|
courseRecordList,
|
||||||
|
getListByToken,
|
||||||
exportStudentOfCourse,
|
exportStudentOfCourse,
|
||||||
exportStudentOfTearcher
|
exportStudentOfTearcher
|
||||||
|
|
||||||
|
|||||||
BIN
src/assets/images/hotforum/04.png
Normal file
BIN
src/assets/images/hotforum/04.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 220 KiB |
@@ -327,7 +327,7 @@ export default {
|
|||||||
},
|
},
|
||||||
startTest(){
|
startTest(){
|
||||||
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){
|
||||||
this.examPaper.json=res.result;
|
this.examPaper.json=res.result;
|
||||||
let qitems=this.convertToItems(this.examPaper.json);
|
let qitems=this.convertToItems(this.examPaper.json);
|
||||||
|
|||||||
@@ -51,7 +51,8 @@
|
|||||||
<el-dropdown placement="bottom" @command="handleContributor">
|
<el-dropdown placement="bottom" @command="handleContributor">
|
||||||
<span class="el-dropdown-link" style="font-size:16px;cursor: pointer;" :style="{color:textColor}">贡献者大会</span>
|
<span class="el-dropdown-link" style="font-size:16px;cursor: pointer;" :style="{color:textColor}">贡献者大会</span>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
<el-dropdown-item command="one">2023</el-dropdown-item>
|
<el-dropdown-item command="three">2024</el-dropdown-item>
|
||||||
|
<el-dropdown-item command="one" divided>2023</el-dropdown-item>
|
||||||
<el-dropdown-item command="two" divided>2022</el-dropdown-item>
|
<el-dropdown-item command="two" divided>2022</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
@@ -246,6 +247,7 @@ export default {
|
|||||||
let obj = {
|
let obj = {
|
||||||
one: urlPre + "/web/contributornew/index",
|
one: urlPre + "/web/contributornew/index",
|
||||||
two: urlPre + "/web/contributor/index",
|
two: urlPre + "/web/contributor/index",
|
||||||
|
three: urlPre + "/web/contributor_2024/index"
|
||||||
};
|
};
|
||||||
window.open(obj[val]);
|
window.open(obj[val]);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ export default {
|
|||||||
|
|
||||||
this.$emit("updateProgress", current);
|
this.$emit("updateProgress", current);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
},
|
},
|
||||||
move(e) {
|
move(e) {
|
||||||
if (this.is_mousedown_progress) {
|
if (this.is_mousedown_progress) {
|
||||||
@@ -124,7 +124,7 @@ export default {
|
|||||||
// 禁止拖动
|
// 禁止拖动
|
||||||
if(!this.isDrag && time && arr[this.blobId] < current) return;
|
if(!this.isDrag && time && arr[this.blobId] < current) return;
|
||||||
this.$emit("updateProgress", current);
|
this.$emit("updateProgress", current);
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -176,4 +176,4 @@ export default {
|
|||||||
.progress-bar:hover .progress-current::after {
|
.progress-bar:hover .progress-current::after {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
<el-table-column label="操作">
|
<el-table-column label="操作">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button-group>
|
<el-button-group>
|
||||||
<el-button style="margin:0 5px" type="text" v-if="scope.row.recommendRank === ''" @click="suggest(scope.row)" icon="el-icon-medal">榜单推荐</el-button>
|
<el-button style="margin:0 5px" type="text" v-if="scope.row.recommendRank === ''||scope.row.recommendRank === null" @click="suggest(scope.row)" icon="el-icon-medal">榜单推荐</el-button>
|
||||||
<!-- <el-button type="text" @click="shareItem(scope.row)" icon="el-icon-share" style="margin:0 5px">推荐</el-button> -->
|
<!-- <el-button type="text" @click="shareItem(scope.row)" icon="el-icon-share" style="margin:0 5px">推荐</el-button> -->
|
||||||
<el-button style="margin:0 5px" v-if="!scope.row.isTop && scope.row.confidentialityLevel == '内部'" type="text"
|
<el-button style="margin:0 5px" v-if="!scope.row.isTop && scope.row.confidentialityLevel == '内部'" type="text"
|
||||||
@click="setTop(scope.row)" icon="el-icon-top">置顶</el-button>
|
@click="setTop(scope.row)" icon="el-icon-top">置顶</el-button>
|
||||||
|
|||||||
@@ -1,206 +1,206 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="padding: 12px 32px 10px 12px;">
|
<div style="padding: 12px 32px 10px 12px;">
|
||||||
<div style="display: flex;justify-content: flex-start;">
|
<div style="display: flex;justify-content: flex-start;">
|
||||||
|
|
||||||
<div><el-input v-model="keyword" placeholder="输入课程名称搜索" clearable></el-input></div>
|
<div><el-input v-model="keyword" placeholder="输入课程名称搜索" clearable></el-input></div>
|
||||||
<div style="padding-left: 10px;"><el-button @click="recordList()" type="primary" icon="el-icon-search">搜索</el-button></div>
|
<div style="padding-left: 10px;"><el-button @click="recordList()" type="primary" icon="el-icon-search">搜索</el-button></div>
|
||||||
<div style="padding: 0px 5px;"><el-button icon="el-icon-refresh-right" @click="keyword = ''" type="primary" >重置</el-button></div>
|
<div style="padding: 0px 5px;"><el-button icon="el-icon-refresh-right" @click="keyword = ''" type="primary" >重置</el-button></div>
|
||||||
<div style="padding: 0px 5px;"><el-button type="primary" @click="exportFile()" icon="el-icon-search" size="small" round>导出</el-button></div>
|
<div style="padding: 0px 5px;"><el-button type="primary" @click="exportFile()" icon="el-icon-search" size="small" round>导出</el-button></div>
|
||||||
<div style="padding: 0px 5px;"><el-button type="primary" @click="exportStudentOfTearcher()" icon="el-icon-search" size="small" round>导出学员信息</el-button></div>
|
<div style="padding: 0px 5px;"><el-button type="primary" @click="exportStudentOfTearcher()" icon="el-icon-search" size="small" round>导出学员信息</el-button></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="Export">
|
<div class="Export">
|
||||||
<!-- <div style="padding-left: 10px;"><el-button type="primary" @click="exportFile()" icon="el-icon-search" size="small" round>导出</el-button></div> -->
|
<!-- <div style="padding-left: 10px;"><el-button type="primary" @click="exportFile()" icon="el-icon-search" size="small" round>导出</el-button></div> -->
|
||||||
<!-- <div style="padding: 0px 5px;"><el-button icon="el-icon-refresh-right" type="primary" size="small" round>导出学员信息</el-button></div> -->
|
<!-- <div style="padding: 0px 5px;"><el-button icon="el-icon-refresh-right" type="primary" size="small" round>导出学员信息</el-button></div> -->
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top:20px;">
|
<div style="margin-top:20px;">
|
||||||
<el-table :data="pageData" border stripe>
|
<el-table :data="pageData" border stripe>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="课程时间"
|
label="课程时间"
|
||||||
prop="courseTime"
|
prop="courseTime"
|
||||||
width="200px">
|
width="200px">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="课程名称"
|
label="课程名称"
|
||||||
prop="courseName"
|
prop="courseName"
|
||||||
width="200px">
|
width="200px">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="开课场地"
|
label="开课场地"
|
||||||
prop="address"
|
prop="address"
|
||||||
width="240px">
|
width="240px">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="所属课程"
|
label="所属课程"
|
||||||
prop="parentCourse"
|
prop="parentCourse"
|
||||||
width="120px">
|
width="120px">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="所属项目"
|
label="所属项目"
|
||||||
prop="parentProject"
|
prop="parentProject"
|
||||||
></el-table-column>
|
></el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="所属路径"
|
label="所属路径"
|
||||||
prop="parentRoute"
|
prop="parentRoute"
|
||||||
width="200px"
|
width="200px"
|
||||||
></el-table-column>
|
></el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="学习总人数"
|
label="学习总人数"
|
||||||
prop="studentNumber"
|
prop="studentNumber"
|
||||||
width="100px"
|
width="100px"
|
||||||
></el-table-column>
|
></el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="时长(分钟)"
|
label="时长(分钟)"
|
||||||
width="100px"
|
width="100px"
|
||||||
prop="period"
|
prop="period"
|
||||||
></el-table-column>
|
></el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="评分"
|
label="评分"
|
||||||
width="100px"
|
width="100px"
|
||||||
prop="score"
|
prop="score"
|
||||||
></el-table-column>
|
></el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="操作"
|
label="操作"
|
||||||
align="center"
|
align="center"
|
||||||
width="150px"
|
width="150px"
|
||||||
prop="cz"
|
prop="cz"
|
||||||
fixed="right"
|
fixed="right"
|
||||||
>
|
>
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<el-button type="text" @click="exportStudentOfCourse(scope.row.courseId)" size="small">导出学员信息</el-button>
|
<el-button type="text" @click="exportStudentOfCourse(scope.row.courseId)" size="small">导出学员信息</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="text-align: center; margin-top:57px">
|
<div style="text-align: center; margin-top:57px">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
background
|
background
|
||||||
@size-change="handleSizeChange"
|
@size-change="handleSizeChange"
|
||||||
@current-change="handleCurrentChange"
|
@current-change="handleCurrentChange"
|
||||||
:current-page="pageInfo.page"
|
:current-page="pageInfo.page"
|
||||||
:page-sizes="[10, 20, 30, 40]"
|
:page-sizes="[10, 20, 30, 40]"
|
||||||
:page-size="pageInfo.pageSize"
|
:page-size="pageInfo.pageSize"
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
:total="pageInfo.total"
|
:total="pageInfo.total"
|
||||||
></el-pagination>
|
></el-pagination>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import apiCourse from '../../api/boe/courseRecord.js';
|
import apiCourse from '../../api/boe/courseRecord.js';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
export default {
|
export default {
|
||||||
data(){
|
data(){
|
||||||
return {
|
return {
|
||||||
pageData:[],
|
pageData:[],
|
||||||
keyword:'',
|
keyword:'',
|
||||||
pageInfo:{},
|
pageInfo:{},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.recordList(1);
|
this.recordList(1);
|
||||||
|
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['userInfo'])
|
...mapGetters(['userInfo'])
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
// 导出所有记录
|
// 导出所有记录
|
||||||
exportFile(){
|
exportFile(){
|
||||||
let req = {
|
let req = {
|
||||||
userId: this.userInfo.sysId
|
userId: this.userInfo.sysId
|
||||||
// userId:"70F80F4E-34BA-10AB-894A-8FA812B19637"
|
// userId:"70F80F4E-34BA-10AB-894A-8FA812B19637"
|
||||||
}
|
}
|
||||||
apiCourse.courseRecordExport(req).then(res=>{
|
apiCourse.courseRecordExport(req).then(res=>{
|
||||||
const link = document.createElement('a');// 创建a标签
|
const link = document.createElement('a');// 创建a标签
|
||||||
let blob = new Blob([res.data],{type: 'application/vnd.ms-excel'}); // 设置文件类型
|
let blob = new Blob([res.data],{type: 'application/vnd.ms-excel'}); // 设置文件类型
|
||||||
link.style.display = "none";
|
link.style.display = "none";
|
||||||
link.href = URL.createObjectURL(blob); // 创建URL
|
link.href = URL.createObjectURL(blob); // 创建URL
|
||||||
link.setAttribute("download", "授课记录.xls");
|
link.setAttribute("download", "授课记录.xls");
|
||||||
document.body.appendChild(link);
|
document.body.appendChild(link);
|
||||||
link.click();
|
link.click();
|
||||||
document.body.removeChild(link);
|
document.body.removeChild(link);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
// 导出课程下的学员信息
|
// 导出课程下的学员信息
|
||||||
exportStudentOfCourse(courseId){
|
exportStudentOfCourse(courseId){
|
||||||
let userId = this.userInfo.sysId;
|
let userId = this.userInfo.sysId;
|
||||||
apiCourse.exportStudentOfCourse(userId,courseId).then(res=>{
|
apiCourse.exportStudentOfCourse(userId,courseId).then(res=>{
|
||||||
const link = document.createElement('a');// 创建a标签
|
const link = document.createElement('a');// 创建a标签
|
||||||
let blob = new Blob([res.data],{type: 'application/vnd.ms-excel'}); // 设置文件类型
|
let blob = new Blob([res.data],{type: 'application/vnd.ms-excel'}); // 设置文件类型
|
||||||
link.style.display = "none";
|
link.style.display = "none";
|
||||||
link.href = URL.createObjectURL(blob); // 创建URL
|
link.href = URL.createObjectURL(blob); // 创建URL
|
||||||
link.setAttribute("download", "授课记录.xls");
|
link.setAttribute("download", "授课记录.xls");
|
||||||
document.body.appendChild(link);
|
document.body.appendChild(link);
|
||||||
link.click();
|
link.click();
|
||||||
document.body.removeChild(link);
|
document.body.removeChild(link);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
// 导出教师下的所有授课记录下的学员信息
|
// 导出教师下的所有授课记录下的学员信息
|
||||||
exportStudentOfTearcher(){
|
exportStudentOfTearcher(){
|
||||||
let userId = this.userInfo.sysId;
|
let userId = this.userInfo.sysId;
|
||||||
// let userId = '5D36C207-64F4-C512-312D-C9598257695C';
|
// let userId = '5D36C207-64F4-C512-312D-C9598257695C';
|
||||||
apiCourse.exportStudentOfTearcher(userId).then(res=>{
|
apiCourse.exportStudentOfTearcher(userId).then(res=>{
|
||||||
const link = document.createElement('a');// 创建a标签
|
const link = document.createElement('a');// 创建a标签
|
||||||
let blob = new Blob([res.data],{type: 'application/vnd.ms-excel'}); // 设置文件类型
|
let blob = new Blob([res.data],{type: 'application/vnd.ms-excel'}); // 设置文件类型
|
||||||
link.style.display = "none";
|
link.style.display = "none";
|
||||||
link.href = URL.createObjectURL(blob); // 创建URL
|
link.href = URL.createObjectURL(blob); // 创建URL
|
||||||
link.setAttribute("download", "授课记录.xls");
|
link.setAttribute("download", "授课记录.xls");
|
||||||
document.body.appendChild(link);
|
document.body.appendChild(link);
|
||||||
link.click();
|
link.click();
|
||||||
document.body.removeChild(link);
|
document.body.removeChild(link);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
recordList(pageIndex){
|
recordList(pageIndex){
|
||||||
let req = {
|
let req = {
|
||||||
// userId:"6B049FAF-C314-7CCF-0D28-0D23F4C42531",
|
// userId:"6B049FAF-C314-7CCF-0D28-0D23F4C42531",
|
||||||
userId: this.userInfo.sysId,
|
userId: this.userInfo.sysId,
|
||||||
keyword:this.keyword,
|
keyword:this.keyword,
|
||||||
page:pageIndex,
|
page:pageIndex,
|
||||||
pageSize:10
|
pageSize:10
|
||||||
}
|
}
|
||||||
apiCourse.courseRecordList(req).then(res=>{
|
apiCourse.courseRecordList(req).then(res=>{
|
||||||
if(res.status == 200) {
|
if(res.status == 200) {
|
||||||
this.pageData = res.result.list;
|
this.pageData = res.result.list;
|
||||||
this.pageInfo = res.result.pageInfo;
|
this.pageInfo = res.result.pageInfo;
|
||||||
} else {
|
} else {
|
||||||
this.$message({
|
this.$message({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
message: res.message
|
message: res.message
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
// 每页显示的条数事件
|
// 每页显示的条数事件
|
||||||
handleSizeChange(val){
|
handleSizeChange(val){
|
||||||
this.pageInfo.pageSize = val;
|
this.pageInfo.pageSize = val;
|
||||||
this.recordList(1);
|
this.recordList(1);
|
||||||
},
|
},
|
||||||
// 显示制定页的数据
|
// 显示制定页的数据
|
||||||
handleCurrentChange(val){
|
handleCurrentChange(val){
|
||||||
this.pageInfo.pageIndex = val;
|
this.pageInfo.pageIndex = val;
|
||||||
this.recordList(this.pageInfo.pageIndex);
|
this.recordList(this.pageInfo.pageIndex);
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.Export{
|
.Export{
|
||||||
display: flex;
|
display: flex;
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
{img:'01',url:'1265897142383042560'},
|
{img:'01',url:'1265897142383042560'},
|
||||||
{img:'02',url:'1265697724606210048'},
|
{img:'02',url:'1265697724606210048'},
|
||||||
{img:'003',url:'1280185851054231552'},
|
{img:'003',url:'1280185851054231552'},
|
||||||
{img:'4',url:''},
|
{img:'04',url:'1321778585966247936'},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -97,7 +97,7 @@
|
|||||||
padding: 28px;
|
padding: 28px;
|
||||||
padding-top: 62px;
|
padding-top: 62px;
|
||||||
margin-bottom: 59px;
|
margin-bottom: 59px;
|
||||||
|
|
||||||
.img {
|
.img {
|
||||||
width: 100%; // 图片宽度占满item宽度
|
width: 100%; // 图片宽度占满item宽度
|
||||||
height: auto; // 自动调整高度
|
height: auto; // 自动调整高度
|
||||||
@@ -132,7 +132,7 @@
|
|||||||
padding: 14px;
|
padding: 14px;
|
||||||
padding-top: 26px;
|
padding-top: 26px;
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
|
|
||||||
.img {
|
.img {
|
||||||
width: 100%; // 图片宽度占满item宽度
|
width: 100%; // 图片宽度占满item宽度
|
||||||
height: auto; // 自动调整高度
|
height: auto; // 自动调整高度
|
||||||
@@ -176,4 +176,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1507,7 +1507,7 @@ export default {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
res.result.list.forEach(item=>{
|
res.result.list.forEach(item=>{
|
||||||
item.viewRankTags = item.viewRankTags.slice(0,2)
|
item.viewRankTags = item.viewRankTags?.slice(0,2)||[]
|
||||||
})
|
})
|
||||||
this.caseList.list = res.result.list
|
this.caseList.list = res.result.list
|
||||||
this.getCaseUserData(res.result.list);
|
this.getCaseUserData(res.result.list);
|
||||||
@@ -1562,7 +1562,7 @@ export default {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
res.result.list.forEach(item=>{
|
res.result.list.forEach(item=>{
|
||||||
item.viewRankTags = item.viewRankTags.slice(0,2)
|
item.viewRankTags = item.viewRankTags?.slice(0,2)||[]
|
||||||
})
|
})
|
||||||
this.caseList.list = res.result.list
|
this.caseList.list = res.result.list
|
||||||
this.getCaseUserData(res.result.list);
|
this.getCaseUserData(res.result.list);
|
||||||
@@ -1601,7 +1601,7 @@ export default {
|
|||||||
}
|
}
|
||||||
// console.log(res?.result?.list ,'有没有数据');
|
// console.log(res?.result?.list ,'有没有数据');
|
||||||
res.result.list.forEach(item=>{
|
res.result.list.forEach(item=>{
|
||||||
item.viewRankTags = item.viewRankTags.slice(0,2)
|
item.viewRankTags = item.viewRankTags?.slice(0,2)||[]
|
||||||
})
|
})
|
||||||
this.caseList.list = res.result.list
|
this.caseList.list = res.result.list
|
||||||
this.getCaseUserData(res.result.list);
|
this.getCaseUserData(res.result.list);
|
||||||
|
|||||||
@@ -253,8 +253,8 @@ export default {
|
|||||||
if(res.status==200){
|
if(res.status==200){
|
||||||
let localCourseIds=[];//本地在线课程的id集合
|
let localCourseIds=[];//本地在线课程的id集合
|
||||||
res.result.list.forEach(item=>{
|
res.result.list.forEach(item=>{
|
||||||
if(item.courseImage.startsWith('/upload')){
|
if(item.courseImage?.startsWith('/upload')){
|
||||||
item.courseImage=$this.fileUrl+item.courseImage.substring(7)
|
item.courseImage=$this.fileUrl+item.courseImage?.substring(7)
|
||||||
}
|
}
|
||||||
if(item.source==2){
|
if(item.source==2){
|
||||||
localCourseIds.push(item.id);
|
localCourseIds.push(item.id);
|
||||||
|
|||||||
@@ -755,7 +755,7 @@
|
|||||||
if (this.contentData.status < 2) {
|
if (this.contentData.status < 2) {
|
||||||
// this.contentData.status = 2; //进行中
|
// this.contentData.status = 2; //进行中
|
||||||
if(r.contentType != 61&&r.contentType != 20 && r.contentType != 10){
|
if(r.contentType != 61&&r.contentType != 20 && r.contentType != 10){
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.isContentTypeTwo = r.contentType
|
this.isContentTypeTwo = r.contentType
|
||||||
$this.isShowTime()
|
$this.isShowTime()
|
||||||
}, 2000);
|
}, 2000);
|
||||||
@@ -817,7 +817,7 @@
|
|||||||
//console.log(h,$this.controlHeight,'$this.controlHeight');
|
//console.log(h,$this.controlHeight,'$this.controlHeight');
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
//console.log('this.contentData11:',this.contentData,this.curriculumData)
|
//console.log('this.contentData11:',this.contentData,this.curriculumData)
|
||||||
// 视频设置禁用处理逻辑,如果用户已全部观看完该视频,则设置为能全部拖动的逻辑,把isDrag设置为true即可,同时删除本地存储的数据
|
// 视频设置禁用处理逻辑,如果用户已全部观看完该视频,则设置为能全部拖动的逻辑,把isDrag设置为true即可,同时删除本地存储的数据
|
||||||
if(this.contentData.progressVideo ===1){
|
if(this.contentData.progressVideo ===1){
|
||||||
@@ -1546,7 +1546,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
progress(val) {
|
progress(val) {
|
||||||
const progressValue = parseFloat(val) * 100;
|
const progressValue = parseFloat(val) * 100;
|
||||||
this.sendEventProgress = Number(progressValue.toFixed(2));
|
this.sendEventProgress = Number(progressValue.toFixed(2));
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user