视频优化
This commit is contained in:
parent
2e0cf47e4c
commit
044d6079d4
@ -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: ""
|
||||
|
@ -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: "",
|
||||
|
@ -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");
|
||||
//第二步移除children为0的数组,也就是将children为0 设置为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();
|
||||
},
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user