From 918f157ab67b03d69e72562b8d705da0c62e5e8d Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期一, 24 七月 2023 16:12:20 +0800
Subject: [PATCH] 修改青羊后台题目个人模拟
---
src/views/exam/simulation/list.vue | 69 ++++++++++++++++++++++++++++++++++
src/router.js | 7 +++
src/api/examPaper.js | 1
3 files changed, 76 insertions(+), 1 deletions(-)
diff --git a/src/api/examPaper.js b/src/api/examPaper.js
index 88bfd4e..4e1939e 100644
--- a/src/api/examPaper.js
+++ b/src/api/examPaper.js
@@ -11,4 +11,5 @@
selfselect: query => post('/api/admin/exam/templates/select/'+ query),
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),
}
diff --git a/src/router.js b/src/router.js
index 6598c82..c466ace 100644
--- a/src/router.js
+++ b/src/router.js
@@ -108,7 +108,12 @@
meta: { title: '鍗曢�夐缂栬緫', noCache: true, activeMenu: '/exam/question/list' },
hidden: true
},
-
+ {
+ path: 'simulation/list',
+ component: () => import('@/views/exam/simulation/list'),
+ name: 'personalSimulationList',
+ meta: { title: '妯℃嫙鍒楄〃', noCache: true }
+ },
{
path: 'personalSimulation/list',
component: () => import('@/views/exam/personalSimulation/list'),
diff --git a/src/views/exam/simulation/list.vue b/src/views/exam/simulation/list.vue
new file mode 100644
index 0000000..ba2d6cf
--- /dev/null
+++ b/src/views/exam/simulation/list.vue
@@ -0,0 +1,69 @@
+<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="name" label="鍚嶇О" />
+ <el-table-column prop="userName" label="鐢ㄦ埛鍚�" width="120px" />
+ <el-table-column prop="count" 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,
+ templatesName:'',
+ userName:''
+ },
+ subjectFilter: null,
+ listLoading: true,
+ tableData: [],
+ total: 0
+ }
+ },
+ created () {
+ this.search()
+ },
+ methods: {
+ submitForm () {
+ this.queryParam.pageIndex = 1
+ this.search()
+ },
+ search () {
+ this.listLoading = true
+ examPaperApi.selfPaList(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>
--
Gitblit v1.8.0