评论管理

This commit is contained in:
2024-10-14 17:27:10 +08:00
parent efa7981828
commit 36c5476b36
2 changed files with 287 additions and 6 deletions

View File

@@ -169,7 +169,7 @@
fixed="right"
header-align="center"
align="center"
width="300"
width="340"
label="操作"
>
<template slot-scope="scope">
@@ -179,25 +179,30 @@
path: 'course-courseCatalogue',
query: { id: scope.row.id, pageIndex }
}"
>
<el-button type="text" size="small">目录管理</el-button>
</router-link>
<el-button
><el-button
type="text"
size="small"
@click="addOrUpdateHandle(scope.row)"
>修改</el-button
>
<el-button type="text" size="small">目录管理</el-button>
</router-link>
<el-button
type="text"
size="small"
@click="handleQuestionBank(scope.row)"
>题库管理</el-button
> <el-button type="text" size="small" @click="showLinkComment(scope.row)"
>评论管理<i class="el-icon-s-comment" ></i
></el-button
>
<el-button type="text" size="small" @click="showLinkTags(scope.row)"
>查看引用</el-button
>
<el-button
style="color: red;"
type="text"
size="small"
@click="deleteHandle(scope.row.id)"
@@ -298,6 +303,19 @@
<el-button type="primary" @click="closeLink"> </el-button>
</span>
</el-dialog>
<el-drawer
title="课程评论一览"
:visible.sync="commontListVisible"
size="60%"
@close="closeCommontLink"
>
<div style="padding:0 20px;box-sizing: border-box;height:calc(100% - 120px);">
<common-commont ref="commonCommont" :courseId="courseId" v-if="commontListVisible"></common-commont>
</div>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="closeLink"> </el-button>
</span>
</el-drawer>
<!-- 教务主任设置 -->
<el-dialog
title="教务主任管理"
@@ -381,6 +399,7 @@
<script>
import commonShopTable from "./shopproductTable.vue";
import commonCommont from "@/views/components/courseList/commont.vue";
import AddOrUpdate from "./course-add-or-update";
import questionBank from "./examination/questionBank";
export default {
@@ -388,6 +407,7 @@ export default {
return {
selectCourse: {},
showQuestionBank: false,
commontListVisible: false,
selectType: [],
director: {
director: null,
@@ -446,7 +466,8 @@ export default {
components: {
AddOrUpdate,
commonShopTable,
questionBank
questionBank,
commonCommont
},
activated() {
if (this.$route.query.upPageInde != null) {
@@ -638,6 +659,10 @@ export default {
this.resListVisible = false;
this.resList = [];
},
closeCommontLink() {
this.commontListVisible = false;
},
showLinkTags(row) {
this.$http({
url: this.$http.adornUrl("/master/course/getCourseLableLinkList"),
@@ -653,6 +678,27 @@ export default {
// console.log(row, "row" , res.data.resList,this.resList);
});
},
showLinkComment(row) {
this.courseId=row.id
this.commontListVisible = true;
this.$nextTick(()=>{
this.$refs.commonCommont.init()
})
// this.$http({
// url: this.$http.adornUrl("/master/courseGuestbook/getCourseGuestbookList"),
// method: "post",
// data: this.$http.adornData({
// courseId: row.id
// })
// }).then(res => {
// if (res.data.code == 0 && res.data.resList.length > 0) {
// this.resList = res.data.resList;
// }
// // console.log(row, "row" , res.data.resList,this.resList);
// });
},
handleChange(value) {
console.log(value, "989999999");
},