题库、编辑、课件新增/编辑返回携带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() { goback() {
if (this.$route.query.courseId) { 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 { } else {
this.$router.push({ path: '/course/Resource', query: {} }) this.$router.push({ path: '/course/Resource', query: {} })
} }

View File

@ -80,7 +80,7 @@ export default {
coursewareAdd() { coursewareAdd() {
this.$router.push({ this.$router.push({
path: '/course/CoursewareAddOrUpdate', 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) { edit(record) {
this.$router.push({ this.$router.push({
path: '/course/CoursewareAddOrUpdate', 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() { 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: { methods: {
//
close() { close() {
this.$router.push({ this.$router.push({
path: '/course/question/QuestionList', path: '/course/question/QuestionList',
@ -218,7 +220,8 @@ export default {
id: this.$route.query.courseId, id: this.$route.query.courseId,
questionId: this.$route.query.id, questionId: this.$route.query.id,
isactive: this.isactive, 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, isactive: this.isactive,
// id: this.questionId, // id: this.questionId,
opt: this.add, opt: this.add,
types : this.$route.query.type,
}, },
}) })
}, },
@ -176,6 +177,7 @@ export default {
isactive: this.isactive, isactive: this.isactive,
questionType: this.questionDetail.questionType, questionType: this.questionDetail.questionType,
courseId: this.$route.query.id, courseId: this.$route.query.id,
types : this.$route.query.type,
}, },
}) })
}, },