视频优化

This commit is contained in:
zhanglipeng 2021-09-26 11:07:43 +08:00
parent 2e0cf47e4c
commit 044d6079d4
4 changed files with 16 additions and 11 deletions

View File

@ -257,7 +257,7 @@ export const constantRoutes = [
{
path: "study/detail/:id(\\d+)",
component: () => import("@/views/benyi_train/video_study/detail"),
name: "Detail",
name: "VideoDetail",
meta: {
title: "培训视频详情",
icon: ""

View File

@ -68,7 +68,7 @@ import { getScoreByVideo, addScore } from "@/api/benyi_train/score";
import { addFeedback } from "@/api/benyi_train/feedback";
export default {
name: "detail",
name: "VideoDetail",
data() {
return {
title: "",

View File

@ -133,7 +133,7 @@ import { listMoedata } from "@/api/system/moedata";
import { downLoadVideoUrl } from "@/utils/zipdownload";
export default {
name: "VideoStudy",
name: "Video_study",
data() {
return {
//
@ -176,16 +176,16 @@ export default {
},
created() {
// this.getList();
listAllLecturer().then((response) => {
//console.log(response.lecturer);
this.lecturerOptions = response.lecturer;
});
// listAllLecturer().then((response) => {
// //console.log(response.lecturer);
// this.lecturerOptions = response.lecturer;
// });
listMoedata(this.queryParams).then((response) => {
//
this.optionTypes = this.handleTree(response.data, "id", "pid");
//children0children0 undefined
this.optionTypes = this.getTreeData(this.optionTypes);
console.log(this.optionTypes)
//console.log(this.optionTypes)
});
},
mounted() {
@ -193,6 +193,7 @@ export default {
},
methods: {
changeType(btn) {
console.log(btn);
this.type = btn.id;
this.ancestors = '';
this.handleQuery(btn);
@ -263,7 +264,7 @@ export default {
// this.queryParams.type = ancestors;
// }
this.queryParams.type = [this.type, this.ancestors].join(',');
//console.log(this.queryParams.type);
console.log(this.queryParams.type);
this.queryParams.pageNum = 1;
this.getList();
},

View File

@ -55,8 +55,12 @@ public class ByTrainVideoController extends BaseController {
public TableDataInfo list(ByTrainVideo byTrainVideo) {
//判断type是否为空
if (!schoolCommon.isStringEmpty(byTrainVideo.getType())) {
if (byTrainVideo.getType().endsWith(",")) {
System.out.println("最后一位是,");
} else {
byTrainVideo.setType(byTrainVideo.getType() + ",");
}
}
startPage();
List<ByTrainVideo> list = byTrainVideoService.selectByTrainVideoList(byTrainVideo);
@ -77,7 +81,7 @@ public class ByTrainVideoController extends BaseController {
@GetMapping("/listscoreandfree/{id}")
public TableDataInfo listscoreandfree(@PathVariable("id") Long id) {
startPage();
ByTrainVideoScore byTrainVideoScore=new ByTrainVideoScore();
ByTrainVideoScore byTrainVideoScore = new ByTrainVideoScore();
byTrainVideoScore.setVideoid(id);
List<ByTrainVideoScore> list = byTrainVideoScoreService.selectByTrainVideoScoreList(byTrainVideoScore);
return getDataTable(list);