feat: 考试提交
This commit is contained in:
parent
93ba4f1e80
commit
e6d1d77cbb
|
@ -1,7 +1,7 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
const myresourceApi = {
|
||||
list: 'study/data/home' // 学习统计
|
||||
list: 'courseManagement/xmCourseCourseware/resource' // 学习统计
|
||||
}
|
||||
|
||||
export function gerMyresource (params) {
|
||||
|
|
|
@ -71,17 +71,15 @@ export default {
|
|||
// if (item.type != 2 && _.isArray(myAnswers)) {
|
||||
// myAnswers = myAnswers.join(',')
|
||||
// }
|
||||
console.log("item.questionType", item.questionType)
|
||||
if (['1', '3'].indexOf(item.questionType) !== -1 && myAnswers) {
|
||||
console.log('item.type', item.questionType)
|
||||
myAnswers = [myAnswers]
|
||||
}
|
||||
console.log('myAnswers', myAnswers)
|
||||
allQuestion.push({
|
||||
...j,
|
||||
questionId: j.questionId,
|
||||
answerTime: 0,
|
||||
myAnswers: myAnswers
|
||||
myAnswerList: myAnswers
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<a-card v-for="(item, index) in dataList" :key="index" style="margin-bottom: 15px;">
|
||||
<div class="flex-center" >
|
||||
<div style="flex: 1;">
|
||||
<h3>{{ item.courseName }}</h3>
|
||||
<h3>{{ item.name }}</h3>
|
||||
<div><span style="margin-right: 20px;">下载次数{{ item.rightQuestions }}次</span><span>预览次数:{{ item.submitTime }}次</span></div>
|
||||
</div>
|
||||
<div style="flex: 0 0 200px; text-align: right;">
|
||||
|
@ -72,7 +72,8 @@ export default {
|
|||
getList () {
|
||||
gerMyresource(this.params).then(res => {
|
||||
console.log('>>>>>>', res)
|
||||
this.dataList = res.data.courseList
|
||||
this.dataList = res.rows
|
||||
this.total = res.total
|
||||
})
|
||||
},
|
||||
changePagination (page, size) {
|
||||
|
|
Loading…
Reference in New Issue