+
{{ item.name }}
-
下载次数{{ item.rightQuestions }}次预览次数:{{ item.submitTime }}次
+
+ 下载次数{{ item.downCount || 0 }}次
+ 预览次数:{{ item.viewCount }}次
+
@@ -32,7 +53,6 @@
-
@@ -54,24 +74,27 @@ export default {
pageNum: 1
},
queryParam: {
- name: '', // 课程分类
- trainWay: ''
+ classify: ''
},
queryOptions: [
- { type: 'select-dic-tree', placeholder: '课程类别', key: 'trainWay', options: [] }
+ { type: 'select-dic-tree', placeholder: '课件类别', key: 'classify', options: [] }
]
}
},
- created () {
- this.dictionaryDropDown()
- },
mounted () {
+ this.dictionaryDropDown()
this.getList()
},
methods: {
+ // 获取数据词典
+ dictionaryDropDown () {
+ dictionaryDropDown({ dictionaryCode: '0009' }).then(res => {
+ this.queryOptions[0].options = dictToTree(res.data, [], 0)
+ this.loading = false
+ })
+ },
getList () {
- gerMyresource(this.params).then(res => {
- console.log('>>>>>>', res)
+ gerMyresource({ ...this.params, ...this.queryParam }).then(res => {
this.dataList = res.rows
this.total = res.total
})
@@ -83,24 +106,18 @@ export default {
this.getList()
})
},
- handlerDown () {
-
+ handlerDown () {},
+ handlerPreview (data) {
+ this.$router.push({
+ path: '/course/CoursewarePreview',
+ query: { coursewareId: data.id, courseId: data.courseId, types: 'self', isOther: 1 }
+ })
},
- handlerPreview () {},
handleRefresh () {
this.getList()
- },
- // 获取数据词典
- dictionaryDropDown () {
- dictionaryDropDown({ dictionaryCode: '0006' }).then((res) => {
- this.queryOptions[1].options = dictToTree(res.data, [], 0)
- this.loading = false
- })
}
}
}
-
+
From fa29c41314d2ef092bf71f555b5276bef8ab007b Mon Sep 17 00:00:00 2001
From: cgd_mac <349008059@qq.com>
Date: Wed, 23 Feb 2022 19:20:24 +0800
Subject: [PATCH 10/10] =?UTF-8?q?fix:=20=E7=99=BB=E5=BD=95=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E5=92=8C=E9=80=80=E5=87=BA=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/layouts/UserLayout.vue | 2 +-
src/store/modules/user.js | 23 +++++++++++++++--------
2 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/src/layouts/UserLayout.vue b/src/layouts/UserLayout.vue
index fc04200..ff7548a 100644
--- a/src/layouts/UserLayout.vue
+++ b/src/layouts/UserLayout.vue
@@ -3,7 +3,7 @@