1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
| <template>
| <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="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.url)"
| >点击预览</el-button>
| </template>
| </el-table-column>
| </el-table>
| <pagination
| v-show="total>0"
| :total="total"
| :page.sync="queryParams.pageNum"
| :limit.sync="queryParams.pageSize"
| @pagination="getList"
| />
| </div>
| </template>
|
| <script>
| import { listQuestion } from '@/api/onlineEducation/student'
|
| export default {
| name: "nPeopleManage",
| dicts: [],
| components: {},
| data() {
| return {
| loading: false,
| single: true,
| multiple: true,
| showSearch: true,
| addForm: false,
| total: 0,
| expertTypes: [],
| expertList: [],
| queryParams: {
| pageNum: 1,
| pageSize: 10,
| },
| };
| },
| created() {
| this.getList();
| },
| methods: {
| getList(){
| this.loading = true;
| 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;
| }
| })
| },
| handleChange(){
|
| },
| handleQuery(){
|
| },
| resetQuery(){
|
| },
| handleView(url){
| window.open(url,'_blank')
| }
| }
| };
| </script>
|
|