This commit is contained in:
2024-10-14 18:03:14 +08:00
parent 6d86045a40
commit cd13e8635a

View File

@@ -174,17 +174,18 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
<el-button
type="text"
size="small"
@click="addOrUpdateHandle(scope.row)"
>修改</el-button
>
<router-link <router-link
:to="{ :to="{
path: 'course-courseCatalogue', path: 'course-courseCatalogue',
query: { id: scope.row.id, pageIndex } query: { id: scope.row.id, pageIndex }
}" }"
><el-button >
type="text"
size="small"
@click="addOrUpdateHandle(scope.row)"
>修改</el-button
>
<el-button type="text" size="small">目录管理</el-button> <el-button type="text" size="small">目录管理</el-button>
</router-link> </router-link>
@@ -193,16 +194,19 @@
size="small" size="small"
@click="handleQuestionBank(scope.row)" @click="handleQuestionBank(scope.row)"
>题库管理</el-button >题库管理</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="showLinkComment(scope.row)"
>评论管理<i class="el-icon-s-comment"></i
></el-button>
<el-button type="text" size="small" @click="showLinkTags(scope.row)" <el-button type="text" size="small" @click="showLinkTags(scope.row)"
>查看引用</el-button >查看引用</el-button
> >
<el-button <el-button
style="color: red;" style="color: red;"
type="text" type="text"
size="small" size="small"
@click="deleteHandle(scope.row.id)" @click="deleteHandle(scope.row.id)"
@@ -309,8 +313,14 @@
size="60%" size="60%"
@close="closeCommontLink" @close="closeCommontLink"
> >
<div style="padding:0 20px;box-sizing: border-box;height:calc(100% - 120px);"> <div
<common-commont ref="commonCommont" :courseId="courseId" v-if="commontListVisible"></common-commont> style="padding:0 20px;box-sizing: border-box;height:calc(100% - 120px);"
>
<common-commont
ref="commonCommont"
:courseId="courseId"
v-if="commontListVisible"
></common-commont>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button type="primary" @click="closeLink"> </el-button> <el-button type="primary" @click="closeLink"> </el-button>
@@ -376,16 +386,17 @@
</span> </span>
</el-dialog> </el-dialog>
<el-drawer title="" size="80%" :visible.sync="showQuestionBank" destroy-on-close> <el-drawer
title=""
size="80%"
:visible.sync="showQuestionBank"
destroy-on-close
>
<div slot="title"> <div slot="title">
<p <p style="margin: 0;font-size: 18px;">
style="margin: 0;font-size: 18px;"
>
<span style="font-weight: bold;">题库管理</span <span style="font-weight: bold;">题库管理</span
><span style="margin-left: 20px;">[ {{ selectCourse.title }} ]</span> ><span style="margin-left: 20px;">[ {{ selectCourse.title }} ]</span>
</p> </p>
</div> </div>
<div style="padding:0 20px;box-sizing: border-box;"> <div style="padding:0 20px;box-sizing: border-box;">
<question-bank <question-bank
@@ -661,7 +672,6 @@ export default {
}, },
closeCommontLink() { closeCommontLink() {
this.commontListVisible = false; this.commontListVisible = false;
}, },
showLinkTags(row) { showLinkTags(row) {
this.$http({ this.$http({
@@ -679,11 +689,11 @@ export default {
}); });
}, },
showLinkComment(row) { showLinkComment(row) {
this.courseId=row.id this.courseId = row.id;
this.commontListVisible = true; this.commontListVisible = true;
this.$nextTick(()=>{ this.$nextTick(() => {
this.$refs.commonCommont.init() this.$refs.commonCommont.init();
}) });
// this.$http({ // this.$http({
// url: this.$http.adornUrl("/master/courseGuestbook/getCourseGuestbookList"), // url: this.$http.adornUrl("/master/courseGuestbook/getCourseGuestbookList"),
@@ -949,6 +959,7 @@ export default {
.flexbox { .flexbox {
display: flex; display: flex;
} }
/deep/.el-drawer__header{ /deep/.el-drawer__header {
background-color: #f0f0f0 !important;} background-color: #f0f0f0 !important;
}
</style> </style>