视频优化
This commit is contained in:
parent
2e0cf47e4c
commit
044d6079d4
@ -257,7 +257,7 @@ export const constantRoutes = [
|
|||||||
{
|
{
|
||||||
path: "study/detail/:id(\\d+)",
|
path: "study/detail/:id(\\d+)",
|
||||||
component: () => import("@/views/benyi_train/video_study/detail"),
|
component: () => import("@/views/benyi_train/video_study/detail"),
|
||||||
name: "Detail",
|
name: "VideoDetail",
|
||||||
meta: {
|
meta: {
|
||||||
title: "培训视频详情",
|
title: "培训视频详情",
|
||||||
icon: ""
|
icon: ""
|
||||||
|
@ -68,7 +68,7 @@ import { getScoreByVideo, addScore } from "@/api/benyi_train/score";
|
|||||||
import { addFeedback } from "@/api/benyi_train/feedback";
|
import { addFeedback } from "@/api/benyi_train/feedback";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "detail",
|
name: "VideoDetail",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
title: "",
|
title: "",
|
||||||
|
@ -133,7 +133,7 @@ import { listMoedata } from "@/api/system/moedata";
|
|||||||
import { downLoadVideoUrl } from "@/utils/zipdownload";
|
import { downLoadVideoUrl } from "@/utils/zipdownload";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "VideoStudy",
|
name: "Video_study",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
@ -176,16 +176,16 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
// this.getList();
|
// this.getList();
|
||||||
listAllLecturer().then((response) => {
|
// listAllLecturer().then((response) => {
|
||||||
//console.log(response.lecturer);
|
// //console.log(response.lecturer);
|
||||||
this.lecturerOptions = response.lecturer;
|
// this.lecturerOptions = response.lecturer;
|
||||||
});
|
// });
|
||||||
listMoedata(this.queryParams).then((response) => {
|
listMoedata(this.queryParams).then((response) => {
|
||||||
//第一步转换数组
|
//第一步转换数组
|
||||||
this.optionTypes = this.handleTree(response.data, "id", "pid");
|
this.optionTypes = this.handleTree(response.data, "id", "pid");
|
||||||
//第二步移除children为0的数组,也就是将children为0 设置为undefined
|
//第二步移除children为0的数组,也就是将children为0 设置为undefined
|
||||||
this.optionTypes = this.getTreeData(this.optionTypes);
|
this.optionTypes = this.getTreeData(this.optionTypes);
|
||||||
console.log(this.optionTypes)
|
//console.log(this.optionTypes)
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -193,6 +193,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
changeType(btn) {
|
changeType(btn) {
|
||||||
|
console.log(btn);
|
||||||
this.type = btn.id;
|
this.type = btn.id;
|
||||||
this.ancestors = '';
|
this.ancestors = '';
|
||||||
this.handleQuery(btn);
|
this.handleQuery(btn);
|
||||||
@ -263,7 +264,7 @@ export default {
|
|||||||
// this.queryParams.type = ancestors;
|
// this.queryParams.type = ancestors;
|
||||||
// }
|
// }
|
||||||
this.queryParams.type = [this.type, this.ancestors].join(',');
|
this.queryParams.type = [this.type, this.ancestors].join(',');
|
||||||
//console.log(this.queryParams.type);
|
console.log(this.queryParams.type);
|
||||||
this.queryParams.pageNum = 1;
|
this.queryParams.pageNum = 1;
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
|
@ -55,8 +55,12 @@ public class ByTrainVideoController extends BaseController {
|
|||||||
public TableDataInfo list(ByTrainVideo byTrainVideo) {
|
public TableDataInfo list(ByTrainVideo byTrainVideo) {
|
||||||
//判断type是否为空
|
//判断type是否为空
|
||||||
if (!schoolCommon.isStringEmpty(byTrainVideo.getType())) {
|
if (!schoolCommon.isStringEmpty(byTrainVideo.getType())) {
|
||||||
|
if (byTrainVideo.getType().endsWith(",")) {
|
||||||
|
System.out.println("最后一位是,");
|
||||||
|
} else {
|
||||||
byTrainVideo.setType(byTrainVideo.getType() + ",");
|
byTrainVideo.setType(byTrainVideo.getType() + ",");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
startPage();
|
startPage();
|
||||||
List<ByTrainVideo> list = byTrainVideoService.selectByTrainVideoList(byTrainVideo);
|
List<ByTrainVideo> list = byTrainVideoService.selectByTrainVideoList(byTrainVideo);
|
||||||
|
|
||||||
@ -77,7 +81,7 @@ public class ByTrainVideoController extends BaseController {
|
|||||||
@GetMapping("/listscoreandfree/{id}")
|
@GetMapping("/listscoreandfree/{id}")
|
||||||
public TableDataInfo listscoreandfree(@PathVariable("id") Long id) {
|
public TableDataInfo listscoreandfree(@PathVariable("id") Long id) {
|
||||||
startPage();
|
startPage();
|
||||||
ByTrainVideoScore byTrainVideoScore=new ByTrainVideoScore();
|
ByTrainVideoScore byTrainVideoScore = new ByTrainVideoScore();
|
||||||
byTrainVideoScore.setVideoid(id);
|
byTrainVideoScore.setVideoid(id);
|
||||||
List<ByTrainVideoScore> list = byTrainVideoScoreService.selectByTrainVideoScoreList(byTrainVideoScore);
|
List<ByTrainVideoScore> list = byTrainVideoScoreService.selectByTrainVideoScoreList(byTrainVideoScore);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user