|
@@ -2,31 +2,12 @@
|
|
|
<div class="wrong-ques student-check">
|
|
|
<Loading v-show="isLoading" bgColor="rgba(0, 0, 0, 0.3)"></Loading>
|
|
|
<div class="filter-type">
|
|
|
- <div class="filter-radio" v-show="0">
|
|
|
- <span class="type-name">{{ $t('syllabus.semester') }}:</span>
|
|
|
- <RadioGroup v-model="filtSubject" type="button" button-style="solid" @on-change="subjChange">
|
|
|
- <Radio v-for="(item, index) in subjectList" :key="index" :label="index">{{ item.name }}</Radio>
|
|
|
- </RadioGroup>
|
|
|
- </div>
|
|
|
<div class="filter-radio">
|
|
|
<span class="type-name">{{ $t('studentWeb.wrongTopic.type') }}:</span>
|
|
|
<RadioGroup v-model="filtType" type="button" button-style="solid" @on-change="filterChange">
|
|
|
<Radio v-for="item in typeList" :key="item.type" :label="item.type">{{ item.value }}</Radio>
|
|
|
</RadioGroup>
|
|
|
</div>
|
|
|
- <!-- <div>
|
|
|
- <span class="type-name">{{ $t('studentWeb.wrongTopic.diff') }}:</span>
|
|
|
- <RadioGroup v-model="filtDiff" type="button" button-style="solid" @on-change="diffChange">
|
|
|
- <Radio :label="0">{{ $t("studentWeb.type.all") }}</Radio>
|
|
|
- <Radio v-for="(item, index) in diffList" :key="index + 1" :label="index + 1">{{ item }}</Radio>
|
|
|
- </RadioGroup>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <span class="type-name">{{ $t('studentWeb.wrongTopic.level') }}:</span>
|
|
|
- <RadioGroup v-model="filtLevel" type="button" button-style="solid" @on-change="levelChange">
|
|
|
- <Radio v-for="(item, index) in levelList" :key="index" :label="index">{{ item }}</Radio>
|
|
|
- </RadioGroup>
|
|
|
- </div> -->
|
|
|
<div class="filter-radio">
|
|
|
<span class="type-name">{{ $t("syllabus.save") }}:</span>
|
|
|
<RadioGroup v-model="filtCollect" type="button" button-style="solid" @on-change="filterChange">
|
|
@@ -261,7 +242,6 @@ export default {
|
|
|
checkTopicArr: [],
|
|
|
pointShow: false, //知识点弹框
|
|
|
pointField: "",
|
|
|
- isOpen: false, //控制固定筛选框是否收起
|
|
|
winHeight: false, //判断筛选框是否固定在顶部
|
|
|
sasInfo: undefined,
|
|
|
continuationToken: null,
|
|
@@ -357,7 +337,6 @@ export default {
|
|
|
})
|
|
|
if(!needAdd && !needTopic) {
|
|
|
let nxtRev = this.exerciseTime.find(etime => {return etime.qId === item.id || etime.id === item.pId})
|
|
|
- console.log('sjian时间', nxtRev);
|
|
|
if(nxtRev) {
|
|
|
item.nxtRev = this.dateFormat(nxtRev.nxtRev)
|
|
|
item.nxtRevUnix = nxtRev.nxtRev
|
|
@@ -376,10 +355,7 @@ export default {
|
|
|
})
|
|
|
// 下一步获取题目详细信息,并根据pid将题目集合到一起
|
|
|
if(this.topicList.length) {
|
|
|
- // this.getJson()
|
|
|
-
|
|
|
let data = await this.getAllData()
|
|
|
- console.log(data);
|
|
|
data.forEach(item => {
|
|
|
// 查找有没有重复id
|
|
|
let needPid = this.topicRes.findIndex(exe => {
|
|
@@ -471,21 +447,6 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
- async getJson() {
|
|
|
- let data = await this.getAllData()
|
|
|
- console.log(data);
|
|
|
- data.forEach(item => {
|
|
|
- // 查找有没有重复id
|
|
|
- let needPid = this.exerciseList.findIndex(exe => {
|
|
|
- return exe.id === item.id
|
|
|
- })
|
|
|
- if(needPid === -1) {
|
|
|
- this.exerciseList.push(item)
|
|
|
- } else {
|
|
|
- this.exerciseList[needPid].children.push(item.children[0])
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
handleReachTop () {
|
|
|
return new Promise(resolve => {
|
|
|
setTimeout(() => {
|
|
@@ -575,41 +536,6 @@ export default {
|
|
|
this.topicTotal = this.exerciseList.length
|
|
|
this.isLoading = false
|
|
|
},
|
|
|
- // 选择学科
|
|
|
- subjChange(val) {
|
|
|
- console.log(val);
|
|
|
- // 选择学科后要重新获取题目
|
|
|
- },
|
|
|
- // 选择题型
|
|
|
- typeChange(val) {
|
|
|
- console.log(val);
|
|
|
- // 一样重新获取题目
|
|
|
- },
|
|
|
- // 选择难度
|
|
|
- diffChange(val) {
|
|
|
- console.log(val);
|
|
|
- // 一样重新获取题目
|
|
|
- },
|
|
|
- // 选择层次
|
|
|
- levelChange(val) {
|
|
|
- console.log(val);
|
|
|
- // 一样重新获取题目
|
|
|
- },
|
|
|
- // 搜索词
|
|
|
- searchChange() {
|
|
|
- let val = this.subTitle
|
|
|
- console.log(val);
|
|
|
- this.exerciseList = this.topicRes.filter(i => i.question.indexOf(val) > -1)
|
|
|
- this.topicTotal = this.exerciseList.length
|
|
|
- },
|
|
|
- startPra() {
|
|
|
- // this.$router.push({
|
|
|
- // name: "eventView/evaluation",
|
|
|
- /* params: {
|
|
|
- papers: this.paperInfo
|
|
|
- } */
|
|
|
- // })
|
|
|
- },
|
|
|
// 收藏题目
|
|
|
onCollection(index) {
|
|
|
this.exerciseList[index].star = !this.exerciseList[index].star
|
|
@@ -619,10 +545,6 @@ export default {
|
|
|
const filterHeight = document.getElementsByClassName("filter-type")[0].offsetHeight
|
|
|
this.winHeight = (filterHeight - scrollHeight) < 95
|
|
|
},
|
|
|
- //退出测试
|
|
|
- quitTest() {
|
|
|
- this.$router.go(-1)
|
|
|
- },
|
|
|
},
|
|
|
computed: {
|
|
|
checkNum() {
|