XW пре 1 година
родитељ
комит
f1ee56531a

+ 0 - 78
TEAMModelOS/ClientApp/src/components/student-web/WrongQusetion/QuesList copy.vue

@@ -2,31 +2,12 @@
     <div class="wrong-ques student-check">
     <div class="wrong-ques student-check">
         <Loading v-show="isLoading" bgColor="rgba(0, 0, 0, 0.3)"></Loading>
         <Loading v-show="isLoading" bgColor="rgba(0, 0, 0, 0.3)"></Loading>
         <div class="filter-type">
         <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">
             <div class="filter-radio">
                 <span class="type-name">{{ $t('studentWeb.wrongTopic.type') }}:</span>
                 <span class="type-name">{{ $t('studentWeb.wrongTopic.type') }}:</span>
                 <RadioGroup v-model="filtType" type="button" button-style="solid" @on-change="filterChange">
                 <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>
                     <Radio v-for="item in typeList" :key="item.type" :label="item.type">{{ item.value }}</Radio>
                 </RadioGroup>
                 </RadioGroup>
             </div>
             </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">
             <div class="filter-radio">
                 <span class="type-name">{{ $t("syllabus.save") }}:</span>
                 <span class="type-name">{{ $t("syllabus.save") }}:</span>
                 <RadioGroup v-model="filtCollect" type="button" button-style="solid" @on-change="filterChange">
                 <RadioGroup v-model="filtCollect" type="button" button-style="solid" @on-change="filterChange">
@@ -261,7 +242,6 @@ export default {
             checkTopicArr: [],
             checkTopicArr: [],
             pointShow: false, //知识点弹框
             pointShow: false, //知识点弹框
             pointField: "",
             pointField: "",
-            isOpen: false, //控制固定筛选框是否收起
             winHeight: false, //判断筛选框是否固定在顶部
             winHeight: false, //判断筛选框是否固定在顶部
             sasInfo: undefined,
             sasInfo: undefined,
             continuationToken: null,
             continuationToken: null,
@@ -357,7 +337,6 @@ export default {
                             })
                             })
                             if(!needAdd && !needTopic) {
                             if(!needAdd && !needTopic) {
                                 let nxtRev = this.exerciseTime.find(etime => {return etime.qId === item.id || etime.id === item.pId})
                                 let nxtRev = this.exerciseTime.find(etime => {return etime.qId === item.id || etime.id === item.pId})
-                                console.log('sjian时间', nxtRev);
                                 if(nxtRev) {
                                 if(nxtRev) {
                                     item.nxtRev = this.dateFormat(nxtRev.nxtRev)
                                     item.nxtRev = this.dateFormat(nxtRev.nxtRev)
                                     item.nxtRevUnix = nxtRev.nxtRev
                                     item.nxtRevUnix = nxtRev.nxtRev
@@ -376,10 +355,7 @@ export default {
                     })
                     })
                     // 下一步获取题目详细信息,并根据pid将题目集合到一起
                     // 下一步获取题目详细信息,并根据pid将题目集合到一起
                     if(this.topicList.length) {
                     if(this.topicList.length) {
-                        // this.getJson()
-                        
                         let data = await this.getAllData()
                         let data = await this.getAllData()
-                        console.log(data);
                         data.forEach(item => {
                         data.forEach(item => {
                             // 查找有没有重复id
                             // 查找有没有重复id
                             let needPid = this.topicRes.findIndex(exe => {
                             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 () {
         handleReachTop () {
             return new Promise(resolve => {
             return new Promise(resolve => {
                 setTimeout(() => {
                 setTimeout(() => {
@@ -575,41 +536,6 @@ export default {
             this.topicTotal = this.exerciseList.length
             this.topicTotal = this.exerciseList.length
             this.isLoading = false
             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) {
         onCollection(index) {
             this.exerciseList[index].star = !this.exerciseList[index].star
             this.exerciseList[index].star = !this.exerciseList[index].star
@@ -619,10 +545,6 @@ export default {
             const filterHeight = document.getElementsByClassName("filter-type")[0].offsetHeight
             const filterHeight = document.getElementsByClassName("filter-type")[0].offsetHeight
             this.winHeight = (filterHeight - scrollHeight) < 95
             this.winHeight = (filterHeight - scrollHeight) < 95
         },
         },
-        //退出测试
-        quitTest() {
-            this.$router.go(-1)
-        },
     },
     },
     computed: {
     computed: {
         checkNum() {
         checkNum() {