|
@@ -135,34 +135,31 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import MxCondition from '@/components/MxCondition/mx-condition'
|
|
|
-
|
|
|
-let flag = 1
|
|
|
import {
|
|
|
- treeList,
|
|
|
- smartSubjectList,
|
|
|
- smartGradeList,
|
|
|
- newEditionList,
|
|
|
+ diagnosticRecords,
|
|
|
getQuestionsNumByChapter,
|
|
|
getQuestionsNumByKnowledge,
|
|
|
knowledgeTree,
|
|
|
- diagnosticRecords
|
|
|
+ treeList
|
|
|
} from '@/api/webApi/webQue.js'
|
|
|
|
|
|
+let flag = 1
|
|
|
+
|
|
|
export default {
|
|
|
- components:{
|
|
|
+ components: {
|
|
|
MxCondition
|
|
|
},
|
|
|
- props:{
|
|
|
- requireFields:{
|
|
|
- type:Array,
|
|
|
- default:[]
|
|
|
+ props: {
|
|
|
+ requireFields: {
|
|
|
+ type: Array,
|
|
|
+ default: []
|
|
|
},
|
|
|
|
|
|
- queryParams:{
|
|
|
- type:Object,
|
|
|
- default:[]
|
|
|
+ queryParams: {
|
|
|
+ type: Object,
|
|
|
+ default: []
|
|
|
},
|
|
|
- tabActive:0,
|
|
|
+ tabActive: 0
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -215,10 +212,10 @@ export default {
|
|
|
// 获取章节树
|
|
|
getTree() {
|
|
|
treeList({
|
|
|
- subjectId:this.queryParams.exeSubject,
|
|
|
- editionId:this.queryParams.exeOrder,
|
|
|
- gradeId:this.queryParams.exeGrade,
|
|
|
- chapterId:this.form.chapterId
|
|
|
+ subjectId: this.queryParams.exeSubject,
|
|
|
+ editionId: this.queryParams.exeOrder,
|
|
|
+ gradeId: this.queryParams.exeGrade,
|
|
|
+ chapterId: this.form.chapterId
|
|
|
}).then((res) => {
|
|
|
console.log('gettree', res)
|
|
|
this.treeList = res.data
|
|
@@ -246,7 +243,7 @@ export default {
|
|
|
)
|
|
|
},
|
|
|
toDetails(item) {
|
|
|
- this.dialogVisible=false
|
|
|
+ this.dialogVisible = false
|
|
|
this.$router.push({
|
|
|
path: '/question-center/smartExercise/answerDetailas',
|
|
|
query: {
|
|
@@ -259,9 +256,9 @@ export default {
|
|
|
getQueByChapter() {
|
|
|
getQuestionsNumByChapter({
|
|
|
chapterId: this.form.chapterId,
|
|
|
- subjectId:this.queryParams.exeSubject,
|
|
|
- editionId:this.queryParams.exeOrder,
|
|
|
- gradeId:this.queryParams.exeGrade,
|
|
|
+ subjectId: this.queryParams.exeSubject,
|
|
|
+ editionId: this.queryParams.exeOrder,
|
|
|
+ gradeId: this.queryParams.exeGrade
|
|
|
}).then((res) => {
|
|
|
this.chapterList = res.data
|
|
|
})
|
|
@@ -296,7 +293,7 @@ export default {
|
|
|
query: {
|
|
|
chapterId: item.chapterId,
|
|
|
title: item.chapterName,
|
|
|
- subjectId: this.form.subjectId
|
|
|
+ subjectId: this.queryParams.exeSubject
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -308,7 +305,7 @@ export default {
|
|
|
query: {
|
|
|
knowledgeId: item.knowledgeId,
|
|
|
title: item.knowledgeName,
|
|
|
- subjectId: this.form.subjectId
|
|
|
+ subjectId: this.queryParams.exeSubject
|
|
|
}
|
|
|
})
|
|
|
}
|