Merge branch 'develop' of https://gitee.com/siwa-team/dawa-vue into develop
This commit is contained in:
commit
2da6abb98e
|
@ -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({
|
||||||
|
|
|
@ -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('批量导入')
|
||||||
|
|
Loading…
Reference in New Issue