|
@@ -7,14 +7,14 @@
|
|
</el-card>
|
|
</el-card>
|
|
<el-card class="box-card" v-loading="loading">
|
|
<el-card class="box-card" v-loading="loading">
|
|
<div slot="header">
|
|
<div slot="header">
|
|
- <mx-search-group justify="end" :span="6" v-model="sectionName" placeholder="请输入搜索内容" @search="getList">
|
|
|
|
|
|
+ <mx-search-group justify="end" :span="6" v-model="sectionName" placeholder="请输入搜索内容" @search="getList">
|
|
</mx-search-group>
|
|
</mx-search-group>
|
|
</div>
|
|
</div>
|
|
<div v-if="total" id="question">
|
|
<div v-if="total" id="question">
|
|
- <div class="que_item" v-for="(item, index) in queList" :key="item.id">
|
|
|
|
|
|
+ <div class="que_item" v-for="(item, index) in queList" :key="item.id+'_'+index">
|
|
<div class="que_content">
|
|
<div class="que_content">
|
|
<div class="que-content-title">
|
|
<div class="que-content-title">
|
|
- <div class="index">{{ (pageForm.pageSize*(pageForm.pageNum-1)+index+1) }}.</div>
|
|
|
|
|
|
+ <div class="index">{{ (pageForm.pageSize * (pageForm.pageNum - 1) + index + 1) }}.</div>
|
|
<mx-question-content :options="questionOptions(item)"></mx-question-content>
|
|
<mx-question-content :options="questionOptions(item)"></mx-question-content>
|
|
</div>
|
|
</div>
|
|
<div class="que-option">
|
|
<div class="que-option">
|
|
@@ -44,12 +44,13 @@
|
|
</div>
|
|
</div>
|
|
<div class="operation">
|
|
<div class="operation">
|
|
<div class="detail" @click="viewDetail(item)">
|
|
<div class="detail" @click="viewDetail(item)">
|
|
- <img src="@/assets/images/icon_chakan.png" alt="" />
|
|
|
|
|
|
+ <img src="@/assets/images/icon_chakan.png" alt=""/>
|
|
<span>查看详情>></span>
|
|
<span>查看详情>></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="pd20" v-show="item.expand" v-html="item.answer2"></div>
|
|
|
|
|
|
+ <div class="pd20" v-show="item.expand" v-html="'[正确答案]:'+(item.answer2||'无')"></div>
|
|
|
|
+ <div class="pd20" v-show="item.expand" v-html="'[解析]:'+(item.parse||'无')"></div>
|
|
</div>
|
|
</div>
|
|
<pagination
|
|
<pagination
|
|
:total="total"
|
|
:total="total"
|
|
@@ -65,25 +66,25 @@
|
|
<script>
|
|
<script>
|
|
import MxSearchGroup from '@/components/MxSearch/mx-search-group'
|
|
import MxSearchGroup from '@/components/MxSearch/mx-search-group'
|
|
import MxCondition from '@/components/MxCondition/mx-condition'
|
|
import MxCondition from '@/components/MxCondition/mx-condition'
|
|
-import { getAiAdStudyQuestionList } from '@/api/webApi/webVideo'
|
|
|
|
|
|
+import {getAiAdStudyQuestionList} from '@/api/webApi/webVideo'
|
|
import MxQuestionContent from '@/components/MxPaper/mx-question-content'
|
|
import MxQuestionContent from '@/components/MxPaper/mx-question-content'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
- components: { MxSearchGroup, MxCondition,MxQuestionContent },
|
|
|
|
|
|
+ components: {MxSearchGroup, MxCondition, MxQuestionContent},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
pageForm: {
|
|
pageForm: {
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
pageSize: 10
|
|
pageSize: 10
|
|
},
|
|
},
|
|
- loading:false,
|
|
|
|
- isSearch:false,
|
|
|
|
- queList:[],
|
|
|
|
|
|
+ loading: false,
|
|
|
|
+ isSearch: false,
|
|
|
|
+ queList: [],
|
|
sectionName: '',
|
|
sectionName: '',
|
|
queryParams: {
|
|
queryParams: {
|
|
- v2Subject:'',
|
|
|
|
|
|
+ v2Subject: '',
|
|
},
|
|
},
|
|
- total:0,
|
|
|
|
|
|
+ total: 0,
|
|
requireFields: ['v2Subject']
|
|
requireFields: ['v2Subject']
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -106,13 +107,13 @@ export default {
|
|
getList() {
|
|
getList() {
|
|
this.loading = true
|
|
this.loading = true
|
|
getAiAdStudyQuestionList({
|
|
getAiAdStudyQuestionList({
|
|
- subjectId:this.queryParams.v2Subject,
|
|
|
|
- searchTerm:this.sectionName,
|
|
|
|
|
|
+ subjectId: this.queryParams.v2Subject,
|
|
|
|
+ searchTerm: this.sectionName,
|
|
...this.pageForm
|
|
...this.pageForm
|
|
}).then(res => {
|
|
}).then(res => {
|
|
this.total = res.total
|
|
this.total = res.total
|
|
this.queList = res.rows.map(item => {
|
|
this.queList = res.rows.map(item => {
|
|
- item.expand= false
|
|
|
|
|
|
+ item.expand = false
|
|
return item
|
|
return item
|
|
})
|
|
})
|
|
this.$nextTick(_ => this.mxGlobal.MathQueue('question'))
|
|
this.$nextTick(_ => this.mxGlobal.MathQueue('question'))
|