|
|
|
@ -1,49 +0,0 @@ |
|
|
|
<!-- src/views/WrongQuestion.vue --> |
|
|
|
<template> |
|
|
|
<div class="wrong-question"> |
|
|
|
<!-- 搜索区域组件 --> |
|
|
|
<WrongQuestionSearch |
|
|
|
ref="wrongQuestionSearch" |
|
|
|
@search="handleSearch" |
|
|
|
/> |
|
|
|
<!-- 错题表格组件 --> |
|
|
|
<WrongQuestionTable |
|
|
|
ref="wrongQuestionTable" |
|
|
|
@view-user="viewUser" |
|
|
|
@view-question="viewQuestion" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import WrongQuestionSearch from '@/components/WrongQuestion/WrongQuestionSearch.vue' |
|
|
|
import WrongQuestionTable from '@/components/WrongQuestion/WrongQuestionTable.vue' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'WrongQuestion', |
|
|
|
components: { |
|
|
|
WrongQuestionSearch, |
|
|
|
WrongQuestionTable |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleSearch(filters) { |
|
|
|
// 直接调用子组件的方法设置过滤条件并获取数据 |
|
|
|
this.$refs.wrongQuestionTable.setData(data); |
|
|
|
}, |
|
|
|
|
|
|
|
viewUser(item) { |
|
|
|
console.log('查看出错用户:', item) |
|
|
|
}, |
|
|
|
|
|
|
|
viewQuestion(item) { |
|
|
|
console.log('查看题目:', item) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style scoped> |
|
|
|
.wrong-question { |
|
|
|
padding: 20px; |
|
|
|
} |
|
|
|
</style> |