题库、编辑、课件新增/编辑返回携带type课程分类的参数
This commit is contained in:
parent
21fb3385c8
commit
58a5738476
|
@ -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: {} })
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,12 +88,18 @@ 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() {
|
||||||
|
console.log('type', this.$route.query.type)
|
||||||
this.$router.push({ path: '/course/CourseList/' + this.$route.query.type, query: {} })
|
this.$router.push({ path: '/course/CourseList/' + this.$route.query.type, query: {} })
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
@ -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,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue