|
@@ -48,8 +48,8 @@
|
|
|
<div v-show="activeName=='学习足迹'">
|
|
|
<div class="header-panl">
|
|
|
<!-- 搜索及分类筛选 -->
|
|
|
- <filterList @changeTypeId="changeTypeId" @startSearch="startSearch">
|
|
|
- <hot-new-control @sortTypeChange="sortTypeChange"/>
|
|
|
+ <filterList @changeTypeId="changeTypeId2" @startSearch="startSearch2">
|
|
|
+ <!-- <hot-new-control @sortTypeChange="sortTypeChange2"/> -->
|
|
|
</filterList>
|
|
|
</div>
|
|
|
<!--课件列表-->
|
|
@@ -183,6 +183,12 @@ export default {
|
|
|
}
|
|
|
this.getFileData()
|
|
|
},
|
|
|
+ sortTypeChange (name) {
|
|
|
+ for (let i = 0; i < this.param2.content.sort.length; i++) {
|
|
|
+ this.param2.content.sort[i].sorted = this.param2.content.sort[i].sortname == name ? 1 : 0
|
|
|
+ }
|
|
|
+ this.getStudyHistory()
|
|
|
+ },
|
|
|
tabChange (data) {
|
|
|
if (data.label == '学习足迹') {
|
|
|
this.getStudyHistory()
|
|
@@ -213,12 +219,24 @@ export default {
|
|
|
this.param.content.pageNumber = 1
|
|
|
this.getFileData();
|
|
|
},
|
|
|
+ /* 改变分类ID */
|
|
|
+ changeTypeId2(id) {
|
|
|
+ this.param2.content.where.sat_courseware_classid = id == 0 ? null : id;
|
|
|
+ this.param2.content.pageNumber = 1
|
|
|
+ this.getStudyHistory();
|
|
|
+ },
|
|
|
/* 开始搜索 */
|
|
|
startSearch(value) {
|
|
|
this.param.content.where.condition = value;
|
|
|
this.param.content.pageNumber = 1
|
|
|
this.getFileData();
|
|
|
},
|
|
|
+ /* 开始搜索 */
|
|
|
+ startSearch2(value) {
|
|
|
+ this.param2.content.where.condition = value;
|
|
|
+ this.param2.content.pageNumber = 1
|
|
|
+ this.getStudyHistory();
|
|
|
+ },
|
|
|
async goTest (data) {
|
|
|
let res = await this.$api.requested({
|
|
|
"classname": "saletool.courseware.coursewaretest",
|