From ab7e8546a2907e60e6517e275a0f606b9b416a49 Mon Sep 17 00:00:00 2001
From: lmj <3407000732@qq.com>
Date: Sat, 10 Dec 2022 22:55:21 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/UserCenter/menu.vue | 6 +-
src/data/pages.js | 1 +
src/views/case/ManageList.vue | 10 ++-
src/views/course/MycaseRecord.vue | 115 +++++++++++++++++++++++++++++
4 files changed, 130 insertions(+), 2 deletions(-)
create mode 100644 src/views/course/MycaseRecord.vue
diff --git a/src/components/UserCenter/menu.vue b/src/components/UserCenter/menu.vue
index 81dd1f16..2388e16c 100644
--- a/src/components/UserCenter/menu.vue
+++ b/src/components/UserCenter/menu.vue
@@ -14,7 +14,7 @@
:default-active="activeMenu"
router
active-text-color="#3379FB"
- :default-openeds="['manageTodo','manageFinish','teacherTodo','teacherFinish','myqa','notice','mystudy', 'course', 'exam', 'u001', 'u002', 'u003', 'u004','mylecnotes']"
+ :default-openeds="['manageTodo','manageFinish','teacherTodo','teacherFinish','myqa','notice','mystudy', 'course', 'exam', 'u001', 'u002', 'u003', 'u004','mylecnotes','mycaseRecord']"
class="el-menu-vertical"
@open="handleOpen"
@close="handleClose"
@@ -179,6 +179,10 @@
我的授课记录
+
+
+
+ 我的案例记录
重置
+ 只查看我上传的
+
@@ -121,7 +123,8 @@ export default {
queryObj: {
pageIndex:1,
pageSize:10,
- isTop:''
+ isTop:'',
+ excellent:false,
}, //查询对象
caseList: [], //案例列表
count:0,
@@ -159,6 +162,10 @@ export default {
this.getData();
},
methods: {
+ // getSearch(){
+ // this.queryObj.excellent = !this.queryObj.excellent;
+ // this.getData();
+ // },
cancal(item){
this.$confirm('是否取消该案例为优秀案例?', '提示', {
confirmButtonText: '确定',
@@ -222,6 +229,7 @@ export default {
this.queryObj.isTop = '';
this.queryObj.keyWord = '';
this.queryObj.pageIndex = 1;
+ this.queryObj.excellent = null;
this.getData()
},
//获取案例列表数据
diff --git a/src/views/course/MycaseRecord.vue b/src/views/course/MycaseRecord.vue
new file mode 100644
index 00000000..f8b96496
--- /dev/null
+++ b/src/views/course/MycaseRecord.vue
@@ -0,0 +1,115 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
From e42169429b3bcfa0a3ce433b941a68ac3775ef98 Mon Sep 17 00:00:00 2001
From: lmj <3407000732@qq.com>
Date: Sun, 11 Dec 2022 15:12:57 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E8=AF=BE=E7=A8=8B?=
=?UTF-8?q?=E6=8E=92=E8=A1=8C=E6=A6=9C=E9=A2=84=E8=A7=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Portal/course/couresinteract.vue | 708 ++++++++++++++++++
src/views/Index.vue | 6 +-
src/views/portal/course/Index.vue | 7 +
3 files changed, 720 insertions(+), 1 deletion(-)
create mode 100644 src/components/Portal/course/couresinteract.vue
diff --git a/src/components/Portal/course/couresinteract.vue b/src/components/Portal/course/couresinteract.vue
new file mode 100644
index 00000000..a3dda2f1
--- /dev/null
+++ b/src/components/Portal/course/couresinteract.vue
@@ -0,0 +1,708 @@
+
+
+
+
+
+
+ {{ data.score }}
+
+
+
+
+
+ {{ data.studys }}
+
+
+
+
+
+ {{ data.praises? data.praises:0}}
+
+
+
+
+
+
+
+ {{ data.favorites? data.favorites:0}}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/Index.vue b/src/views/Index.vue
index 3c3d6dfe..5c110545 100644
--- a/src/views/Index.vue
+++ b/src/views/Index.vue
@@ -189,7 +189,9 @@
-
+
+
+
@@ -467,6 +469,7 @@
import apiUser from '@/api/system/user.js';
import apiCoursePortal from '@/api/modules/coursePortal.js';
import interactBar from '@/components/Portal/interactBar.vue';
+ import couresinteract from '@/components/Portal/course/couresinteract.vue';
import ad from '@/components/Portal/adFloat.vue';
import courseImage from '@/components/Course/courseImage.vue';
import articleImage from '@/components/Article/articleImage.vue';
@@ -491,6 +494,7 @@
portalFloatTools,
authorInfo,
interactBar,
+ couresinteract,
courseImage,
InterestCollection,
GuideBox,
diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue
index 2685a5e0..69e59b1b 100644
--- a/src/views/portal/course/Index.vue
+++ b/src/views/portal/course/Index.vue
@@ -325,6 +325,7 @@ export default {
},
data() {
return {
+
resonimg:{},
formatDate,
formatNum:formatUserNumber,
@@ -384,6 +385,7 @@ export default {
totalPages: 1
};
},
+
mounted() {
let screenWidth = window.screen.availWidth;
if (screenWidth < 1280) {
@@ -851,6 +853,7 @@ export default {
}
})
this.scorelist = res.result;
+ // console.log(this.scorelist)
}
});
},
@@ -905,6 +908,10 @@ export default {