Commit 03380de1 authored by wangjiankun's avatar wangjiankun

查询结果点击卡片后 返回记录查询结果 筛选也实现

parent c8c938aa
......@@ -99,7 +99,11 @@ export default {
name: this.$route.query.routerPage,
params: {
searchFocus: 'focus',
searchContent: this.$route.query.searchContent
searchContent: this.$route.query.searchContent,
screenType: this.$route.query.screenType,
screenlableIndex: this.$route.query.screenlableIndex,
screenlableId: this.$route.query.screenlableId,
screenValue: this.$route.query.screenValue
}
})
} else if (this.$route.name === 'TrainDetail' && this.$route.query.pageName && this.$route.query.pageName === 'courseSearch') {
......@@ -107,7 +111,11 @@ export default {
name: this.$route.query.routerPage,
params: {
searchFocus: 'focus',
searchContent: this.$route.query.searchContent
searchContent: this.$route.query.searchContent,
screenType: this.$route.query.screenType,
screenlableIndex: this.$route.query.screenlableIndex,
screenlableId: this.$route.query.screenlableId,
screenValue: this.$route.query.screenValue
}
})
} else if (this.$route.name === 'Classification') {
......
......@@ -56,7 +56,7 @@
class="con-box large-con-box"
v-for="(item,index) in tabsContentList"
:key="index"
@click="$curriculumTrainRouter(item.lessonType, item.businessId, '', item.valueConsume, item.lecturerId, item.lessonName,'courseSearch',value,$route.name)"
@click="$curriculumTrainRouter(item.lessonType, item.businessId, '', item.valueConsume, item.lecturerId, item.lessonName,'courseSearch',value,$route.name, typeCurrent,labelCurrent,labelId,valueIndex)"
>
<curriculum
:item="item"
......@@ -229,7 +229,8 @@ export default {
name: '收费(消耗积分)'
}, {
name: '返积分'
}]
}],
valueIndex: ''
}
},
methods: {
......@@ -337,6 +338,7 @@ export default {
},
// 点击积分 事件
pointClick(index) {
this.valueIndex = index
console.log(index, '88888888888888888')
if (index === 0) {
this.costValue === '1' ? this.costValue = '' : this.costValue = '1'
......@@ -382,8 +384,22 @@ export default {
}
},
mounted() {
// this.HomeBLessons()
// this.Course()
if (this.$route.params.screenType !== undefined || this.$route.params.screenlable !== undefined || this.$route.params.screenValue !== undefined) {
if (this.$route.params.screenType !== undefined) {
this.typeClick(this.$route.params.screenType)
}
if (this.$route.params.screenlableIndex !== undefined && this.$route.params.screenlableId !== undefined) {
this.labelClick(this.$route.params.screenlableIndex, this.$route.params.screenlableId)
}
if (this.$route.params.screenValue !== undefined) {
this.pointClick(this.$route.params.screenValue)
}
}
this.ListAllLesson()
delete this.$route.params.screenValue
delete this.$route.params.screenType
delete this.$route.params.screenlableIndex
delete this.$route.params.screenlableId
}
}
</script>
......
......@@ -397,8 +397,7 @@ export function removeClass(ele, cls) {
* @param lecturerId 讲师ID
* @param lessonName 课程名称
*/
export function curriculumTrainRouter(lessonType, id, fromName, valueConsume, lecturerId, lessonName, searchCourse, searchContent, routerPage) {
console.log(this.$route)
export function curriculumTrainRouter(lessonType, id, fromName, valueConsume, lecturerId, lessonName, searchCourse, searchContent, routerPage, screenType, screenlableIndex, screenlableId, screenValue) {
// 当前登录人请求
get.getMyCurInfo({
requireId: ''
......@@ -431,8 +430,11 @@ export function curriculumTrainRouter(lessonType, id, fromName, valueConsume, le
id: id,
pageName: searchCourse,
searchContent: searchContent,
routerPage
routerPage,
screenType,
screenlableIndex,
screenlableId,
screenValue
}
})
} else {
......@@ -454,7 +456,11 @@ export function curriculumTrainRouter(lessonType, id, fromName, valueConsume, le
id: id,
pageName: searchCourse,
searchContent: searchContent,
routerPage
routerPage,
screenType,
screenlableIndex,
screenlableId,
screenValue
}
})
} else {
......@@ -477,7 +483,11 @@ export function curriculumTrainRouter(lessonType, id, fromName, valueConsume, le
role: 'people',
pageName: searchCourse,
searchContent: searchContent,
routerPage
routerPage,
screenType,
screenlableIndex,
screenlableId,
screenValue
}
})
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment