From ae43feac8c6b2372f5a061ead68e71027e8877e1 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Thu, 27 Jun 2024 09:25:10 +0800
Subject: [PATCH] 修改
---
src/views/onlineEducation/questionManage/index.vue | 67 +++++++++++++--------------------
1 files changed, 27 insertions(+), 40 deletions(-)
diff --git a/src/views/onlineEducation/questionManage/index.vue b/src/views/onlineEducation/questionManage/index.vue
index 33e35a8..d45d056 100644
--- a/src/views/onlineEducation/questionManage/index.vue
+++ b/src/views/onlineEducation/questionManage/index.vue
@@ -2,20 +2,20 @@
<div class="app-container">
<el-table v-loading="loading" :data="expertList">
<el-table-column label="月份" align="center" prop="month" />
- <el-table-column label="平台名称" align="center" prop="name" />
- <el-table-column label="上月题库总题目数" align="center" prop="totalNum" />
- <el-table-column label="新增题目数量" align="center" prop="addQuestionNum" />
- <el-table-column label="减少题目数" align="center" prop="reduceQuestionNum" />
- <el-table-column label="刷题应用率" align="center" prop="brushQuestionsRate" />
- <el-table-column label="组卷应用率" align="center" prop="testPaperRate" />
- <el-table-column label="上报时间" align="center" prop="time" />
+ <el-table-column label="平台名称" align="center" prop="institutionName" />
+ <el-table-column label="上月题库总题目数" align="center" prop="lastMonthCount" />
+ <el-table-column label="新增题目数量" align="center" prop="addCount" />
+ <el-table-column label="减少题目数" align="center" prop="reduceCount" />
+ <el-table-column label="刷题应用率" align="center" prop="brushRate" />
+ <el-table-column label="组卷应用率" align="center" prop="assemblyRate" />
+ <el-table-column label="上报时间" align="center" prop="createTime" />
<el-table-column label="组卷预览" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-button
size="mini"
type="text"
style="color: #1890ff"
- @click="handleView(scope.row)"
+ @click="handleView(scope.row.url)"
>点击预览</el-button>
</template>
</el-table-column>
@@ -23,7 +23,7 @@
<pagination
v-show="total>0"
:total="total"
- :page.sync="queryParams.pageIndex"
+ :page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
@@ -31,6 +31,8 @@
</template>
<script>
+import { listQuestion } from '@/api/onlineEducation/student'
+
export default {
name: "nPeopleManage",
dicts: [],
@@ -46,8 +48,8 @@
expertTypes: [],
expertList: [],
queryParams: {
- pageIndex: 1,
- pageSize: 10
+ pageNum: 1,
+ pageSize: 10,
},
};
},
@@ -57,34 +59,19 @@
methods: {
getList(){
this.loading = true;
- this.expertList = [
- {
- id: 1,
- month: '2024年6月',
- name: '测试数据1',
- totalNum: 120,
- addQuestionNum: 20,
- reduceQuestionNum: 10,
- brushQuestionsRate: '80%',
- testPaperRate: '75%',
- time: '2024-6-11 10:32:00 '
-
- },
- {
- id: 2,
- month: '2024年6月',
- name: '测试数据2',
- totalNum: 100,
- addQuestionNum: 10,
- reduceQuestionNum: 15,
- brushQuestionsRate: '90%',
- testPaperRate: '85%',
- time: '2024-6-11 10:32:00 '
+ listQuestion( this.queryParams).then((res) => {
+ if (res.code == 200) {
+ this.expertList = res.rows.map(item => {
+ return {
+ ...item,
+ brushRate: item.brushRate + '%',
+ assemblyRate: item.assemblyRate + '%'
+ }
+ })
+ this.total = res.total
+ this.loading = false;
}
- ]
- this.total = 2
- this.loading = false;
-
+ })
},
handleChange(){
@@ -95,8 +82,8 @@
resetQuery(){
},
- handleView(){
-
+ handleView(url){
+ window.open(url,'_blank')
}
}
};
--
Gitblit v1.9.2