mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-08 10:26:43 +08:00
Compare commits
80 Commits
250207-gro
...
master_120
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
047b1f9bae | ||
|
|
7162d329ee | ||
|
|
d7d80e8244 | ||
|
|
af208d0a6d | ||
|
|
713f258c14 | ||
|
|
def3892edc | ||
|
|
51a8da4bdb | ||
|
|
6536e36857 | ||
|
|
1bf9398177 | ||
|
|
a5333952c9 | ||
|
|
127f191776 | ||
|
|
e9b9a14b69 | ||
|
|
11a1065df9 | ||
|
|
001452fa2e | ||
|
|
988a7a1e17 | ||
|
|
7fed1a3991 | ||
|
|
5448a9724d | ||
|
|
23928a0865 | ||
|
|
797c08d8fc | ||
|
|
a8d44d0169 | ||
|
|
567bed812b | ||
|
|
2e0fe475f2 | ||
|
|
04ecf6a971 | ||
|
|
5381416a05 | ||
|
|
216141dbd3 | ||
|
|
1dad88c59b | ||
|
|
0f3c53cb31 | ||
|
|
1f4416e9b1 | ||
|
|
2ffe9c1872 | ||
|
|
e74f14baa0 | ||
|
|
aa0fcf6ff0 | ||
|
|
9fba452d2d | ||
|
|
d33e27b3d0 | ||
|
|
b679502553 | ||
|
|
181892de67 | ||
|
|
609902aeb8 | ||
|
|
23ffd002a7 | ||
|
|
4d783ce94d | ||
|
|
b52ad264da | ||
|
|
cc48f52fea | ||
|
|
a78f6a0152 | ||
|
|
5b5d73c905 | ||
|
|
1843c9e6aa | ||
|
|
ca25bd9d76 | ||
|
|
091c09204f | ||
|
|
31be7b053e | ||
|
|
178431e7df | ||
|
|
efbf778d80 | ||
|
|
14fdadcec3 | ||
|
|
33feddbe3a | ||
|
|
7756c28679 | ||
|
|
bb45487264 | ||
|
|
df77e5c7dc | ||
|
|
b22dc4539a | ||
|
|
db024ebc2a | ||
|
|
5e7580a936 | ||
|
|
00d272c3d0 | ||
|
|
398bbc675b | ||
|
|
d0a6807d2c | ||
|
|
f01283f530 | ||
|
|
b9ec8ed534 | ||
|
|
5f9da5cf03 | ||
|
|
1b3064f2ab | ||
|
|
24be910b83 | ||
|
|
6153daa98a | ||
|
|
c5f6f5c83e | ||
|
|
4d0cae9346 | ||
|
|
5be181df8c | ||
|
|
67f2ff3e86 | ||
|
|
3588ef3e67 | ||
|
|
7fab8bb062 | ||
|
|
977af999a3 | ||
|
|
cc0362380e | ||
|
|
45027ca77e | ||
|
|
83838b2c1a | ||
|
|
acbacac737 | ||
|
|
f98fda4f78 | ||
|
|
1ad2c80c9b | ||
|
|
21afc82036 | ||
|
|
6b6e8a4096 |
@@ -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 = 'https://u.boe.com/userbasic/audience/import'
|
VUE_APP_AUDIENCE_IMPORT_URL = 'http://10.251.132.177/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='https://u.boe.com/web/'
|
VUE_APP_LOGIN_URL='http://10.251.132.177/web/'
|
||||||
|
|
||||||
# scorm课件的播放url地址
|
# scorm课件的播放url地址
|
||||||
VUE_APP_SCORM_URL = 'https://u.boe.com/newscorm/scorm-player'
|
VUE_APP_SCORM_URL = 'http://10.251.132.177/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
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import ajax from '@/utils/xajax.js'
|
import ajax from '@/utils/xajax.js'
|
||||||
|
import ajax2 from '../unionAjax.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 按名称查询
|
* 按名称查询
|
||||||
@@ -9,7 +9,9 @@ const findByName = function(name) {
|
|||||||
return ajax.get('/xboe/teacher/name?name=' + name);
|
return ajax.get('/xboe/teacher/name?name=' + name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const findByNameNew = function(name) {
|
||||||
|
return ajax2.get('/manageApi/admin/teacher/selectTeacher?name=' + name);
|
||||||
|
}
|
||||||
const updateTeacher=function(data){
|
const updateTeacher=function(data){
|
||||||
return ajax.postJson('/xboe/teacher/update-teacher',data);
|
return ajax.postJson('/xboe/teacher/update-teacher',data);
|
||||||
}
|
}
|
||||||
@@ -217,7 +219,7 @@ export default {
|
|||||||
update,
|
update,
|
||||||
del,
|
del,
|
||||||
detail,
|
detail,
|
||||||
findByName,
|
findByNameNew,
|
||||||
updateSysId,
|
updateSysId,
|
||||||
has,
|
has,
|
||||||
start,
|
start,
|
||||||
|
|||||||
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 |
@@ -13,7 +13,7 @@
|
|||||||
</el-input>
|
</el-input>
|
||||||
<div class="choice-box" v-if="teacherDownList.length>0">
|
<div class="choice-box" v-if="teacherDownList.length>0">
|
||||||
<ul>
|
<ul>
|
||||||
<li v-for="te in teacherDownList" :key="te.key" @click="changeTeachers(te)">{{te.teacherName + te.teacherCode}}</li>
|
<li v-for="te in teacherDownList" :key="te.key" @click="changeTeachers(te)">{{te.teacherName + '(' + te.teacherCode + ')'}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<!-- <el-select
|
<!-- <el-select
|
||||||
@@ -88,15 +88,15 @@
|
|||||||
if (this.teacherValues !== '') {
|
if (this.teacherValues !== '') {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
try {
|
try {
|
||||||
const { result, message, status } = await apiTeacher.findByName(this.teacherValues);
|
const { data, message, code } = await apiTeacher.findByNameNew(this.teacherValues);
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (status === 200) {
|
if (code === 200) {
|
||||||
let list = [];
|
let list = [];
|
||||||
result.forEach(item => {
|
data.forEach(item => {
|
||||||
list.push({
|
list.push({
|
||||||
teacherId: item.id,
|
teacherId: item.id,
|
||||||
teacherName: item.name,
|
teacherName: item.name,
|
||||||
teacherCode: item.code
|
teacherCode: item.mobile
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
this.teacherDownList = list;
|
this.teacherDownList = list;
|
||||||
|
|||||||
@@ -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);
|
||||||
@@ -582,8 +582,13 @@ export default {
|
|||||||
apiStudy.saveExam(postData).then(res=>{
|
apiStudy.saveExam(postData).then(res=>{
|
||||||
this.thisTrue = true
|
this.thisTrue = true
|
||||||
if(res.status == 200) {
|
if(res.status == 200) {
|
||||||
|
console.log("获取数据结果 考试 res ==>",res)
|
||||||
this.records.push(res.result);
|
this.records.push(res.result);
|
||||||
this.content.status=9;//表已学习完,判断上级的章是否已完成
|
//TODO 评分更改 最终完成
|
||||||
|
if(res.result.scope > res.result.passLine){
|
||||||
|
this.content.status=9;//表已学习完,判断上级的章是否已完成
|
||||||
|
}
|
||||||
|
|
||||||
this.studyItemId=res.result.studyItemId;//第一次保存时是没有的,所以这里要赋值
|
this.studyItemId=res.result.studyItemId;//第一次保存时是没有的,所以这里要赋值
|
||||||
this.$alert('您本次考试得分:'+this.lastScore, '考试成绩', {
|
this.$alert('您本次考试得分:'+this.lastScore, '考试成绩', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
|
|||||||
@@ -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]);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- <div style="color: red;">下面的表格标题及内容需要调整完善</div> -->
|
<!-- <div style="color: red;">下面的表格标题及内容需要调整完善</div> -->
|
||||||
<div>
|
<div>
|
||||||
<el-tabs v-model="tabName" @tab-click="handleTabClick">
|
<el-tabs style="width: 100%;" v-model="tabName" @tab-click="handleTabClick">
|
||||||
<el-tab-pane label="报名管理" name="second">
|
<el-tab-pane label="报名管理" name="second">
|
||||||
<!-- <div>已报名{{study.list.length}}人,共有0人报名未成功,共有{{study.list.length}}人通过审核</div> -->
|
<!-- <div>已报名{{study.list.length}}人,共有0人报名未成功,共有{{study.list.length}}人通过审核</div> -->
|
||||||
<el-row style="margin: 20px 0;" :gutter="20">
|
<el-row style="margin: 20px 0;" :gutter="20">
|
||||||
@@ -863,4 +863,19 @@ export default {
|
|||||||
height: 400px;
|
height: 400px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.el-tabs__nav-wrap::after {
|
||||||
|
display: none; /* 隐藏滚动条轨道 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-tabs__nav-scroll {
|
||||||
|
overflow: hidden; /* 隐藏滚动条滑块 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 隐藏垂直滚动条 */
|
||||||
|
.el-table .el-table__body-wrapper::-webkit-scrollbar {
|
||||||
|
display: none; /* Chrome, Safari, Opera*/
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
@keydown.right.prevent="forwardCurrentTime"
|
@keydown.right.prevent="forwardCurrentTime"
|
||||||
@keydown.up.prevent="increaseVolume"
|
@keydown.up.prevent="increaseVolume"
|
||||||
@keydown.down.prevent="lowerVolume"
|
@keydown.down.prevent="lowerVolume"
|
||||||
@keydown.esc.prevent="toggleFullScreen"
|
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
width="100%"
|
width="100%"
|
||||||
height="100%"
|
height="100%"
|
||||||
@@ -385,9 +384,26 @@ export default {
|
|||||||
console.log('\x1b[31m%s\x1b[0m','*****************加载失败**********')
|
console.log('\x1b[31m%s\x1b[0m','*****************加载失败**********')
|
||||||
})
|
})
|
||||||
// 监听全屏事件的变化,保存数据
|
// 监听全屏事件的变化,保存数据
|
||||||
window.addEventListener("fullscreenchange", () => {
|
window.addEventListener("F", () => {
|
||||||
this.isFullscreen = this.isFullScreen();
|
this.isFullscreen = this.isFullScreen();
|
||||||
});
|
});
|
||||||
|
document.addEventListener('fullscreenchange',this.handleFullscreenChange);
|
||||||
|
document.addEventListener('webkitfullscreenchange',this.handleFullscreenChange );
|
||||||
|
// this.videoDom.addEventListener('keydown', function(e){
|
||||||
|
// //console.log('\x1b[31m%s\x1b[0m','*****************加载失败**********')
|
||||||
|
// console.log("video is exit");
|
||||||
|
// if(e.key === "Escape"){
|
||||||
|
// console.log("按键 退出全屏 执行")
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
|
||||||
|
// this.videoDom.addEventListener("keydown", (e) => {
|
||||||
|
// console.log("是否监听到");
|
||||||
|
// if(e.keyCode == 27){
|
||||||
|
// console.log("是否监听到 esc");
|
||||||
|
// this.toggleFullScreen();
|
||||||
|
// }
|
||||||
|
// });
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//当视频由于需要缓冲下一帧而停止,解决一直计时的问题
|
//当视频由于需要缓冲下一帧而停止,解决一直计时的问题
|
||||||
@@ -540,6 +556,7 @@ export default {
|
|||||||
/* 切换“全屏”和“非全屏”模式
|
/* 切换“全屏”和“非全屏”模式
|
||||||
*/
|
*/
|
||||||
toggleFullScreen() {
|
toggleFullScreen() {
|
||||||
|
console.log("toggleFullScreen 执行 ",this.isFullScreen())
|
||||||
let element = this.$refs.area;
|
let element = this.$refs.area;
|
||||||
if (!this.isFullScreen()) {
|
if (!this.isFullScreen()) {
|
||||||
if (element.requestFullscreen) {
|
if (element.requestFullscreen) {
|
||||||
@@ -596,6 +613,24 @@ export default {
|
|||||||
const currentTime = this.$refs.video.currentTime;
|
const currentTime = this.$refs.video.currentTime;
|
||||||
this.$emit('onTimeUpdate', currentTime);
|
this.$emit('onTimeUpdate', currentTime);
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* 监听全屏变化
|
||||||
|
*/
|
||||||
|
handleFullscreenChange() {
|
||||||
|
console.log("handleFullscreenChange gx this.isFullScreen()",this.isFullScreen())
|
||||||
|
console.log("handleFullscreenChange gx this.isFullscreen",this.isFullscreen)
|
||||||
|
|
||||||
|
if(this.isFullscreen){
|
||||||
|
this.isFullscreen = !!document.fullscreenElement;
|
||||||
|
if (!this.isFullscreen) {
|
||||||
|
// 退出全屏后的逻辑(如暂停视频、更新 UI 等)
|
||||||
|
console.log('ESC 已退出全屏 handleFullscreenChange',this.isFullscreen);
|
||||||
|
this.$emit('onFullscreen',false);//全屏
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
currentVolume: function () {
|
currentVolume: function () {
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -195,7 +195,15 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!--课程管理-->
|
<!--课程管理-->
|
||||||
<el-dialog custom-class="g-dialog" title="课程学习管理" width="900px" :visible.sync="manageStudy.dlgShow" :close-on-click-modal="false">
|
<el-dialog
|
||||||
|
custom-class="g-dialog"
|
||||||
|
title="课程学习管理"
|
||||||
|
width="900px"
|
||||||
|
height="900px"
|
||||||
|
:visible.sync="manageStudy.dlgShow"
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
|
||||||
|
>
|
||||||
<manager :manageStudyData="manageStudyData" :isShowDialog="manageStudy.dlgShow"></manager>
|
<manager :manageStudyData="manageStudyData" :isShowDialog="manageStudy.dlgShow"></manager>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<el-button @click="manageStudy.dlgShow = false">关闭</el-button>
|
<el-button @click="manageStudy.dlgShow = false">关闭</el-button>
|
||||||
@@ -939,4 +947,8 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.el-dialog__body {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -185,11 +185,11 @@
|
|||||||
<div class="back_num" v-if="numIsFalse">
|
<div class="back_num" v-if="numIsFalse">
|
||||||
<div class="search_div_num">
|
<div class="search_div_num">
|
||||||
当前已检索 <span style="color:#FF4040 ;">
|
当前已检索 <span style="color:#FF4040 ;">
|
||||||
{{ caseList.count }}</span> 条数据
|
{{ this.caseList.count }}</span> 条数据
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="data-content">
|
<div class="data-content">
|
||||||
<div v-for="item in caseList.list" :key="isTimeData?item.browsingHistoryId : item.id" class="case-list">
|
<div v-for="item in this.caseList.list" :key="isTimeData?item.browsingHistoryId : item.id" class="case-list">
|
||||||
<div class="case-info">
|
<div class="case-info">
|
||||||
<div class="case-info-cont">
|
<div class="case-info-cont">
|
||||||
<!-- <router-link :to="'/case/detail?id=' + item.id"> -->
|
<!-- <router-link :to="'/case/detail?id=' + item.id"> -->
|
||||||
@@ -270,7 +270,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="caseList.showPagCount > queryCondition.pageSize">
|
<div v-if="this.caseList.showPagCount > queryCondition.pageSize">
|
||||||
<pagination :size="queryCondition.pageSize" :total="caseList.count" :page="queryCondition.pageIndex"
|
<pagination :size="queryCondition.pageSize" :total="caseList.count" :page="queryCondition.pageIndex"
|
||||||
layout="total, prev, pager, next, jumper" @change-page="currentChange"></pagination>
|
layout="total, prev, pager, next, jumper" @change-page="currentChange"></pagination>
|
||||||
</div>
|
</div>
|
||||||
@@ -279,7 +279,7 @@
|
|||||||
<!-- <span class="pag-text" @click="loadMore()" v-if="moreState == 1">加载更多</span>
|
<!-- <span class="pag-text" @click="loadMore()" v-if="moreState == 1">加载更多</span>
|
||||||
<span class="pag-text-msg" v-else-if="moreState == 2">数据加载中</span>
|
<span class="pag-text-msg" v-else-if="moreState == 2">数据加载中</span>
|
||||||
<span class="pag-text-msg" v-else-if="moreState == 3">没有更多数据了</span> -->
|
<span class="pag-text-msg" v-else-if="moreState == 3">没有更多数据了</span> -->
|
||||||
<span class="notcoures" v-if="caseList.list.length == 0">
|
<span class="notcoures" v-if="this.caseList.list.length == 0">
|
||||||
<img :src="`${webBaseUrl}/images/nocase.png`" alt="">
|
<img :src="`${webBaseUrl}/images/nocase.png`" alt="">
|
||||||
<h5>暂无案例,请优先学习其它案例吧~</h5>
|
<h5>暂无案例,请优先学习其它案例吧~</h5>
|
||||||
</span>
|
</span>
|
||||||
@@ -555,7 +555,7 @@ export default {
|
|||||||
name: '',
|
name: '',
|
||||||
years: [],
|
years: [],
|
||||||
// 随机
|
// 随机
|
||||||
notInIds: [],//重复的id
|
// notInIds: [],//重复的id
|
||||||
orderField: "id",
|
orderField: "id",
|
||||||
orderAsc: false,//排序
|
orderAsc: false,//排序
|
||||||
sysType1:'',
|
sysType1:'',
|
||||||
@@ -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);
|
||||||
@@ -1599,12 +1599,17 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.moreState = 3;
|
this.moreState = 3;
|
||||||
}
|
}
|
||||||
// console.log(res?.result?.list ,'有没有数据');
|
if(res.result.list.length ===0){
|
||||||
|
this.moreState = 3;
|
||||||
|
this.isSeach = false;
|
||||||
|
}
|
||||||
|
console.log(res?.result?.list ,'有没有数据1');
|
||||||
res.result.list.forEach(item=>{
|
res.result.list.forEach(item=>{
|
||||||
item.viewRankTags = item.viewRankTags.slice(0,2)
|
item.viewRankTags = item.viewRankTags?.slice(0,2)||[]
|
||||||
})
|
})
|
||||||
|
console.log(res?.result?.list ,'有没有数据2');
|
||||||
this.caseList.list = res.result.list
|
this.caseList.list = res.result.list
|
||||||
this.getCaseUserData(res.result.list);
|
// this.getCaseUserData(res.result.list);
|
||||||
// 给所有的赋值
|
// 给所有的赋值
|
||||||
this.caseList.count = res.result.count;
|
this.caseList.count = res.result.count;
|
||||||
this.caseList.showPagCount = res.result.count;
|
this.caseList.showPagCount = res.result.count;
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -167,7 +167,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 课程单元 -->
|
<!-- 课程单元 -->
|
||||||
<div class="course-units" v-if="tab == 1">
|
<div class="course-units" v-if="tab == 1">
|
||||||
|
|
||||||
<div :style="`height: ${controlHeight}px;overflow-y: auto;`">
|
<div :style="`height: ${controlHeight}px;overflow-y: auto;`">
|
||||||
<div class="catalog" v-if="courseInfo.type == 20">
|
<div class="catalog" v-if="courseInfo.type == 20">
|
||||||
<div v-for="(item, index) in catalogTree" :key="index" :name="index">
|
<div v-for="(item, index) in catalogTree" :key="index" :name="index">
|
||||||
@@ -755,7 +754,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 +816,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){
|
||||||
@@ -1140,6 +1139,8 @@
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
this.playerBoxShow = false;
|
this.playerBoxShow = false;
|
||||||
|
// this.onPlayerPlayFullscreen()
|
||||||
|
// this.$watermark.set(this.userInfo.name + this.userInfo.loginName);
|
||||||
let $this = this;
|
let $this = this;
|
||||||
//这里有些不准备,如果文件未能加载,这个事件就是错误的
|
//这里有些不准备,如果文件未能加载,这个事件就是错误的
|
||||||
this.isAppendTime=true;
|
this.isAppendTime=true;
|
||||||
@@ -1157,6 +1158,7 @@
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
},
|
},
|
||||||
|
|
||||||
onFullscreen(full) {
|
onFullscreen(full) {
|
||||||
let divId = 'videowatermark';
|
let divId = 'videowatermark';
|
||||||
var div = document.getElementById('myVideoPlayer')
|
var div = document.getElementById('myVideoPlayer')
|
||||||
@@ -1176,9 +1178,12 @@
|
|||||||
"position:absolute;pointer-events: none; width: 100%;height: 100%;top:0;left:0;bottom: 0;right: 0; display: flex;justify-content: center;flex-wrap: wrap;overflow: hidden; opacity:0.3;padding-top:10px";
|
"position:absolute;pointer-events: none; width: 100%;height: 100%;top:0;left:0;bottom: 0;right: 0; display: flex;justify-content: center;flex-wrap: wrap;overflow: hidden; opacity:0.3;padding-top:10px";
|
||||||
div.appendChild(div3);
|
div.appendChild(div3);
|
||||||
} else {
|
} else {
|
||||||
|
console.log("去除水印 ---- gx ----");
|
||||||
var markDiv = div.querySelector("#" + divId);
|
var markDiv = div.querySelector("#" + divId);
|
||||||
|
console.log("去除水印 ---- gx markDiv ----",markDiv);
|
||||||
if (markDiv) {
|
if (markDiv) {
|
||||||
div.removeChild(markDiv);
|
console.log("执行去除水印 ---- gx markDiv ----",markDiv);
|
||||||
|
div.removeChild(markDiv);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1546,7 +1551,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