From 99b389c31e0e1cd7277a99683f637b239da44c70 Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期三, 26 七月 2023 15:23:25 +0800
Subject: [PATCH] 修改青羊后台题目个人模拟列表
---
src/views/exam/simulation/list.vue | 6 +++
src/router.js | 7 +++
src/api/examPaper.js | 1
src/views/exam/mathList/list.vue | 74 +++++++++++++++++++++++++++++++++++++
4 files changed, 88 insertions(+), 0 deletions(-)
diff --git a/src/api/examPaper.js b/src/api/examPaper.js
index 4e1939e..f0c949a 100644
--- a/src/api/examPaper.js
+++ b/src/api/examPaper.js
@@ -12,4 +12,5 @@
selfdeletePaper: id => post('/api/admin/exam/templates/remove/' + id),
selflist: query => post('/api/admin/education/subject/list', query),
selfPaList: query => post('/api/admin/exam/count/list', query),
+ mathList: query => post('/api/admin/exam/count/sourceList', query),
}
diff --git a/src/router.js b/src/router.js
index c466ace..0d021b0 100644
--- a/src/router.js
+++ b/src/router.js
@@ -128,6 +128,13 @@
hidden: true
},
{
+ path: 'personalSimulation/list/mathList',
+ component: () => import('@/views/exam/mathList/list.vue'),
+ name: 'multiplemathList',
+ meta: { title: '妯℃嫙鍒楄〃璇︽儏', noCache: true, activeMenu: '/exam/mathList/list' },
+ hidden: true
+ },
+ {
path: 'question/edit/multipleChoice',
component: () => import('@/views/exam/question/edit/multiple-choice'),
name: 'multipleChoicePage',
diff --git a/src/views/exam/mathList/list.vue b/src/views/exam/mathList/list.vue
new file mode 100644
index 0000000..ad794ff
--- /dev/null
+++ b/src/views/exam/mathList/list.vue
@@ -0,0 +1,74 @@
+<template>
+ <div class="app-container">
+<!-- <el-form :model="queryParam" ref="queryForm" :inline="true">-->
+<!-- <el-form-item label="鐢ㄦ埛鍚嶏細">-->
+<!-- <el-input v-model="queryParam.userName" clearable></el-input>-->
+<!-- </el-form-item>-->
+<!-- <el-form-item label="妯℃澘鍚嶏細">-->
+<!-- <el-input v-model="queryParam.templatesName" clearable></el-input>-->
+<!-- </el-form-item>-->
+<!-- <el-form-item>-->
+<!-- <el-button type="primary" @click="submitForm">鏌ヨ</el-button>-->
+<!-- </el-form-item>-->
+<!-- </el-form>-->
+
+ <el-table v-loading="listLoading" :data="tableData" border fit highlight-current-row style="width: 100%">
+
+ <el-table-column prop="paperScore" label="鎬诲垎鏁�" />
+ <el-table-column prop="userScore" label="鍒嗘暟" width="120px" />
+ <el-table-column prop="doTime" label="鏃堕棿" width="120px" />
+ </el-table>
+ <pagination v-show="total>0" :total="total" :page.sync="queryParam.pageIndex" :limit.sync="queryParam.pageSize"
+ @pagination="search"/>
+ </div>
+</template>
+
+<script>
+import { mapGetters, mapState, mapActions } from 'vuex'
+import Pagination from '@/components/Pagination'
+import examPaperApi from '@/api/examPaper'
+
+export default {
+ components: { Pagination },
+ data () {
+ return {
+ queryParam: {
+ pageIndex: 1,
+ pageSize: 10,
+ id:'',
+ userId:''
+ },
+ subjectFilter: null,
+ listLoading: true,
+ tableData: [],
+ total: 0
+ }
+ },
+ created () {
+
+ },
+ mounted () {
+ this.queryParam.id=this.$route.query.id
+ this.queryParam.userId=this.$route.query.userId
+ this.search()
+ },
+ methods: {
+ submitForm () {
+ this.queryParam.pageIndex = 1
+ this.search()
+ },
+ search () {
+ this.listLoading = true
+ examPaperApi.mathList(this.queryParam).then(data => {
+ const re = data.response
+ this.tableData = re.list
+ this.total = re.total
+ this.queryParam.pageIndex = re.pageNum
+ this.listLoading = false
+ })
+ },
+
+ },
+
+}
+</script>
diff --git a/src/views/exam/simulation/list.vue b/src/views/exam/simulation/list.vue
index ba2d6cf..7636d23 100644
--- a/src/views/exam/simulation/list.vue
+++ b/src/views/exam/simulation/list.vue
@@ -17,6 +17,12 @@
<el-table-column prop="name" label="鍚嶇О" />
<el-table-column prop="userName" label="鐢ㄦ埛鍚�" width="120px" />
<el-table-column prop="count" label="鏁伴噺" width="120px" />
+ <el-table-column label="鎿嶄綔" align="center" width="160px">
+ <template slot-scope="{row}">
+ <el-button size="mini" @click="$router.push({path:'/exam/personalSimulation/list/mathList',query:{id:row.id,userId:row.userId}})" >璇︽儏</el-button>
+
+ </template>
+ </el-table-column>
</el-table>
<pagination v-show="total>0" :total="total" :page.sync="queryParam.pageIndex" :limit.sync="queryParam.pageSize"
@pagination="search"/>
--
Gitblit v1.8.0