({{ questionDetail.questionType }}){{questionDetail.questionName}}
- 编辑
+ 编辑
+ 删除
A. {{ questionDetail.answerA }}
B. {{ questionDetail.answerB }}
@@ -44,16 +48,15 @@ import { getQuestionDeatil } from '@/api/course/question/question'
export default {
data() {
return {
- queryParam: { id: this.$route.query.id },
quesitonList: [],
questionDetail: {},
}
},
created: function () {
- let parameter = {}
+ let parameter = {id : this.$route.query.id}
// 查询所有题目id列表
- getQuestionListByCourseId(Object.assign(parameter, this.queryParam)).then((res) => {
+ getQuestionListByCourseId(parameter).then((res) => {
this.quesitonList = res.data
if (!res.data.length) return
@@ -75,18 +78,24 @@ export default {
this.$router.push({
path: '/course/CourseList',
query: {
- // courseName: this.$$router.query.courseName,
- // PageNum: this.$$router.query.PageNum,
- // courseUserOrgId : this.$$router.query.courseUserOrgId,
},
})
},
questionSave() {
- alert('還在對接中~~~')
+ this.$router.push({
+ path: '/course/question/QuestionAdd', query :{
+ courseId: this.$route.query.id,
+ }});
},
- edit: function (i) {
- alert('题目ID:' + i)
+ edit(record) {
+ console.log(record)
+ this.$router.push({ path : '/course/question/QuestionAdd', query:{ id: record , questionType:this.questionDetail.questionType ,courseId:this.$route.query.id}});
},
+ //批量导入
+ questionBatch(){
+ alert('批量导入')
+ courseId:this.$route.query.id
+ }
},
}
diff --git a/src/views/course/question/examQuestion.Vue b/src/views/course/question/examQuestion.Vue
deleted file mode 100644
index 1852865..0000000
--- a/src/views/course/question/examQuestion.Vue
+++ /dev/null
@@ -1,3 +0,0 @@
-
- hello World
-
\ No newline at end of file