题库、编辑、课件新增/编辑返回携带type课程分类的参数
This commit is contained in:
parent
21fb3385c8
commit
58a5738476
|
@ -315,7 +315,7 @@ export default {
|
|||
//返回
|
||||
goback() {
|
||||
if (this.$route.query.courseId) {
|
||||
this.$router.push({ path: '/course/CoursewareList', query: { id: this.$route.query.courseId } })
|
||||
this.$router.push({ path: '/course/CoursewareList', query: { id: this.$route.query.courseId, type: this.$route.query.types } })
|
||||
} else {
|
||||
this.$router.push({ path: '/course/Resource', query: {} })
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@ export default {
|
|||
coursewareAdd() {
|
||||
this.$router.push({
|
||||
path: '/course/CoursewareAddOrUpdate',
|
||||
query: { courseId: this.$route.query.id, isResources: 0 },
|
||||
query: { courseId: this.$route.query.id, ifResources: 0, types: this.$route.query.type },
|
||||
})
|
||||
},
|
||||
|
||||
|
@ -88,12 +88,18 @@ export default {
|
|||
edit(record) {
|
||||
this.$router.push({
|
||||
path: '/course/CoursewareAddOrUpdate',
|
||||
query: { coursewareId: record.id, courseId: this.$route.query.id, type: record.type },
|
||||
query: {
|
||||
coursewareId: record.id,
|
||||
courseId: this.$route.query.id,
|
||||
type: record.type,
|
||||
types: this.$route.query.type,
|
||||
},
|
||||
})
|
||||
},
|
||||
|
||||
//返回
|
||||
goback() {
|
||||
console.log('type', this.$route.query.type)
|
||||
this.$router.push({ path: '/course/CourseList/' + this.$route.query.type, query: {} })
|
||||
},
|
||||
|
||||
|
|
|
@ -211,6 +211,8 @@ export default {
|
|||
},
|
||||
|
||||
methods: {
|
||||
|
||||
//返回
|
||||
close() {
|
||||
this.$router.push({
|
||||
path: '/course/question/QuestionList',
|
||||
|
@ -218,7 +220,8 @@ export default {
|
|||
id: this.$route.query.courseId,
|
||||
questionId: this.$route.query.id,
|
||||
isactive: this.isactive,
|
||||
opt: this.$route.query.opt
|
||||
opt: this.$route.query.opt,
|
||||
type: this.$route.query.types
|
||||
},
|
||||
})
|
||||
},
|
||||
|
|
|
@ -165,6 +165,7 @@ export default {
|
|||
isactive: this.isactive,
|
||||
// id: this.questionId,
|
||||
opt: this.add,
|
||||
types : this.$route.query.type,
|
||||
},
|
||||
})
|
||||
},
|
||||
|
@ -176,6 +177,7 @@ export default {
|
|||
isactive: this.isactive,
|
||||
questionType: this.questionDetail.questionType,
|
||||
courseId: this.$route.query.id,
|
||||
types : this.$route.query.type,
|
||||
},
|
||||
})
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue