题库、编辑、课件新增/编辑返回携带type课程分类的参数

This commit is contained in:
18571350067 2021-12-30 10:09:27 +08:00
parent 21fb3385c8
commit 58a5738476
4 changed files with 16 additions and 5 deletions

View File

@ -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: {} })
}

View File

@ -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,13 +88,19 @@ 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() {
this.$router.push({ path: '/course/CourseList/'+this.$route.query.type, query: {} })
console.log('type', this.$route.query.type)
this.$router.push({ path: '/course/CourseList/' + this.$route.query.type, query: {} })
},
//

View File

@ -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
},
})
},

View File

@ -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,
},
})
},