Merge branch 'develop' of https://gitee.com/siwa-team/dawa-vue into develop

This commit is contained in:
Yuanjianghong 2021-11-08 10:19:27 +08:00
commit 2da6abb98e
2 changed files with 18 additions and 2 deletions

View File

@ -4,7 +4,7 @@ const questionApi = {
add: 'courseManagement/question/addOrUpdate', add: 'courseManagement/question/addOrUpdate',
get: '/courseManagement/question/details', get: '/courseManagement/question/details',
// update: 'sys/menu/update', // update: 'sys/menu/update',
// del: 'courseManagement/course/delete', del: 'courseManagement/course/delete',
// updateStatus: 'sys/menu/updateStatus', // updateStatus: 'sys/menu/updateStatus',
// list: '/courseManagement/course/listPage', // list: '/courseManagement/course/listPage',
// coursewareList:'/courseManagement/course/courseware/details', // coursewareList:'/courseManagement/course/courseware/details',
@ -37,6 +37,14 @@ export function questionAdd (params) {
// } // }
export function deleteQuestion (params) {
return request({
url: questionApi.del,
method: 'delete',
params: params
})
}
// 查看课程详情 // 查看课程详情
export function getQuestionDeatil (params) { export function getQuestionDeatil (params) {
return request({ return request({

View File

@ -43,7 +43,7 @@
<script> <script>
import { getQuestionListByCourseId } from '@/api/course/course' import { getQuestionListByCourseId } from '@/api/course/course'
import { getQuestionDeatil } from '@/api/course/question/question' import { getQuestionDeatil,deleteQuestion } from '@/api/course/question/question'
export default { export default {
data() { data() {
@ -91,6 +91,14 @@ export default {
console.log(record) console.log(record)
this.$router.push({ path : '/course/question/QuestionAdd', query:{ id: record , questionType:this.questionDetail.questionType ,courseId:this.$route.query.id}}); this.$router.push({ path : '/course/question/QuestionAdd', query:{ id: record , questionType:this.questionDetail.questionType ,courseId:this.$route.query.id}});
}, },
del(record){
console.log(record)
deleteQuestion({id:record}).then(res => {
if(res.code == 200) this.$refs.table.refresh(true);
})
},
// //
questionBatch(){ questionBatch(){
alert('批量导入') alert('批量导入')