|
@@ -6,7 +6,14 @@
|
|
|
></mx-condition>
|
|
|
</el-card>
|
|
|
<el-card class="box-card">
|
|
|
- <mx-table :prop-defines="propDefines" :rows="rows"></mx-table>
|
|
|
+ <mx-table :prop-defines="propDefines" :rows="rows">
|
|
|
+ <template #title="{row}">
|
|
|
+ <div v-html="row.title"></div>
|
|
|
+ </template>
|
|
|
+ <template #temp="{row}">
|
|
|
+ <el-button type="text" icon="el-icon-view" @click="questionView(row)">查看详情</el-button>
|
|
|
+ </template>
|
|
|
+ </mx-table>
|
|
|
<pagination
|
|
|
:total="total"
|
|
|
:page.sync="pageForm.pageNum"
|
|
@@ -14,60 +21,86 @@
|
|
|
@pagination="togglePage"
|
|
|
/>
|
|
|
</el-card>
|
|
|
+ <el-dialog :title="'来源于'+currentQuestion.knowledgeName" :visible.sync="dialogVisible" v-if="dialogVisible" width="60%">
|
|
|
+ <analysis :questionId="currentQuestion.questionId" :examineeId="currentQuestion.examineeId" :wrongMode="false"
|
|
|
+ :lockAnswerInSolving="true"></analysis>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import MxSearchGroup from '@/components/MxSearch/mx-search-group'
|
|
|
import MxCondition from '@/components/MxCondition/mx-condition'
|
|
|
-import { videoList } from '@/api/webApi/webVideo'
|
|
|
+import { getAiSubjectPapers } from '@/api/webApi/webVideo'
|
|
|
+import analysis from '@/views/evaluating/components/analysis'
|
|
|
|
|
|
export default {
|
|
|
- components: { MxSearchGroup, MxCondition },
|
|
|
+ components: { MxSearchGroup, MxCondition,analysis},
|
|
|
data() {
|
|
|
return {
|
|
|
pageForm: {
|
|
|
pageNum: 1,
|
|
|
pageSize: 16
|
|
|
},
|
|
|
- row:[],
|
|
|
+ rows:[],
|
|
|
+ dialogVisible:false,
|
|
|
propDefines:{
|
|
|
- id:{
|
|
|
+ questionId:{
|
|
|
label:'题目编号'
|
|
|
},
|
|
|
- name:{
|
|
|
- label:'题目'
|
|
|
+ title:{
|
|
|
+ label:'题目',
|
|
|
+ slot:'title',
|
|
|
+ width:500
|
|
|
},
|
|
|
type:{
|
|
|
label:'题型'
|
|
|
},
|
|
|
- date:{
|
|
|
+ createdTime:{
|
|
|
label:'时间'
|
|
|
},
|
|
|
- subject:{
|
|
|
+ subjectName:{
|
|
|
label:'科目'
|
|
|
},
|
|
|
temp:{
|
|
|
- label:'操作'
|
|
|
+ label:'操作',
|
|
|
+ slot:'temp'
|
|
|
}
|
|
|
},
|
|
|
+ subjectName:'',
|
|
|
total: 0,
|
|
|
+ currentQuestion:{},
|
|
|
queryParams: {
|
|
|
v2Subject: '',
|
|
|
},
|
|
|
- requireFields: []
|
|
|
+ requireFields: ['v2Subject']
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
handleInvalidQuery() {
|
|
|
|
|
|
+ },
|
|
|
+ questionView(row) {
|
|
|
+ this.currentQuestion = row;
|
|
|
+ this.dialogVisible = true;
|
|
|
},
|
|
|
getList() {
|
|
|
-
|
|
|
+ getAiSubjectPapers({
|
|
|
+ ...this.pageForm,
|
|
|
+ subjectId:this.queryParams.v2Subject
|
|
|
+ }).then(res => {
|
|
|
+ this.rows = res.rows.map(item => {
|
|
|
+ item.subjectName = this.subjectName
|
|
|
+ return item
|
|
|
+ })
|
|
|
+ this.total = res.total
|
|
|
+ console.log(res)
|
|
|
+ })
|
|
|
},
|
|
|
togglePage(){
|
|
|
-
|
|
|
+ this.getList()
|
|
|
},
|
|
|
- handleQuery() {
|
|
|
+ handleQuery(model) {
|
|
|
+ this.subjectName = this.$refs.condition.conditions[0].list.find(item => item.code == model.v2Subject).label
|
|
|
this.getList()
|
|
|
}
|
|
|
}
|