From 36c5476b3640ab631b437a2ff5149267195e84c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Mon, 14 Oct 2024 17:27:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E8=AE=BA=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/courseList/commont.vue | 235 ++++++++++++++++++++ src/views/modules/course/courseList.vue | 58 ++++- 2 files changed, 287 insertions(+), 6 deletions(-) create mode 100644 src/views/components/courseList/commont.vue diff --git a/src/views/components/courseList/commont.vue b/src/views/components/courseList/commont.vue new file mode 100644 index 0000000..100f970 --- /dev/null +++ b/src/views/components/courseList/commont.vue @@ -0,0 +1,235 @@ + + + + + + + + + 查询 + + {{ !defaultExpand ? "收起" : "展开" }}全部评论 + + + + + + + + + + + + + + + 昵称:{{ scope.row.user.nickname }} + ( 姓名:{{ + scope.row.user.name + }} + ) + + + 姓名:{{ scope.row.user.name }} + + + 邮箱:{{ scope.row.user.email }} + + + 手机号:{{ scope.row.user.tel }} + + + + + + + + + + + + + + + + + + + + + + + + 删除 + + + + + + + + + + + diff --git a/src/views/modules/course/courseList.vue b/src/views/modules/course/courseList.vue index cbe7e25..7b10a0f 100644 --- a/src/views/modules/course/courseList.vue +++ b/src/views/modules/course/courseList.vue @@ -169,7 +169,7 @@ fixed="right" header-align="center" align="center" - width="300" + width="340" label="操作" > @@ -179,25 +179,30 @@ path: 'course-courseCatalogue', query: { id: scope.row.id, pageIndex } }" - > - 目录管理 - - 修改 + 目录管理 + + 题库管理 评论管理 查看引用 + 好 的 + + + + + + 好 的 + + 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"); },
+ 昵称:{{ scope.row.user.nickname }} + ( 姓名:{{ + scope.row.user.name + }} + ) +
+ 姓名:{{ scope.row.user.name }} +
+ 邮箱:{{ scope.row.user.email }} +
+ 手机号:{{ scope.row.user.tel }} +