修改
This commit is contained in:
@@ -174,35 +174,39 @@
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<div>
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
@click="addOrUpdateHandle(scope.row)"
|
||||
>修改</el-button
|
||||
>
|
||||
<router-link
|
||||
:to="{
|
||||
path: 'course-courseCatalogue',
|
||||
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>
|
||||
</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="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;"
|
||||
style="color: red;"
|
||||
type="text"
|
||||
size="small"
|
||||
@click="deleteHandle(scope.row.id)"
|
||||
@@ -309,8 +313,14 @@
|
||||
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
|
||||
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>
|
||||
@@ -376,16 +386,17 @@
|
||||
</span>
|
||||
</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">
|
||||
<p
|
||||
style="margin: 0;font-size: 18px;"
|
||||
>
|
||||
<p style="margin: 0;font-size: 18px;">
|
||||
<span style="font-weight: bold;">题库管理</span
|
||||
><span style="margin-left: 20px;">[ {{ selectCourse.title }} ]</span>
|
||||
</p>
|
||||
|
||||
|
||||
</div>
|
||||
<div style="padding:0 20px;box-sizing: border-box;">
|
||||
<question-bank
|
||||
@@ -661,7 +672,6 @@ export default {
|
||||
},
|
||||
closeCommontLink() {
|
||||
this.commontListVisible = false;
|
||||
|
||||
},
|
||||
showLinkTags(row) {
|
||||
this.$http({
|
||||
@@ -679,12 +689,12 @@ export default {
|
||||
});
|
||||
},
|
||||
showLinkComment(row) {
|
||||
this.courseId=row.id
|
||||
this.courseId = row.id;
|
||||
this.commontListVisible = true;
|
||||
this.$nextTick(()=>{
|
||||
this.$refs.commonCommont.init()
|
||||
})
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.$refs.commonCommont.init();
|
||||
});
|
||||
|
||||
// this.$http({
|
||||
// url: this.$http.adornUrl("/master/courseGuestbook/getCourseGuestbookList"),
|
||||
// method: "post",
|
||||
@@ -692,7 +702,7 @@ export default {
|
||||
// courseId: row.id
|
||||
// })
|
||||
// }).then(res => {
|
||||
|
||||
|
||||
// if (res.data.code == 0 && res.data.resList.length > 0) {
|
||||
// this.resList = res.data.resList;
|
||||
// }
|
||||
@@ -949,6 +959,7 @@ export default {
|
||||
.flexbox {
|
||||
display: flex;
|
||||
}
|
||||
/deep/.el-drawer__header{
|
||||
background-color: #f0f0f0 !important;}
|
||||
/deep/.el-drawer__header {
|
||||
background-color: #f0f0f0 !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user