a61d16e2
jack
1.更新文件
|
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
|
<template>
<div>
<Dec :content="content" />
<div class="testpaper">
<div class="search">
<span>选择试卷</span>
<el-select v-model="testpaperVal" size="small" placeholder="请选择">
<el-option
v-for="item in testpaper"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
<el-button type="primary" size="small" @click="classclick">班级排名</el-button>
<el-button type="primary" size="small" @click="gradeclick">年级排名</el-button>
<el-button type="primary" size="small">清空</el-button>
</div>
<div class="export">
<el-button type="primary" size="small">导出EXCEL</el-button>
</div>
<el-table
v-if="classFlag"
ref="multipleTable"
:data="classData"
tooltip-effect="dark"
style="width: 100%"
>
<el-table-column
prop="no"
width="50"
label="排名"
/>
<el-table-column
prop="classes"
label="班级"
/>
<el-table-column
prop="classid"
width="100"
label="班级ID"
/>
<el-table-column
prop="testtime"
width="150"
label="考试时间"
/>
<el-table-column
prop="avg"
label="平均分"
/>
<el-table-column
prop="younum"
label="优秀人数"
/>
<el-table-column
prop="youbl"
label="优秀占比"
/>
<el-table-column
prop="liangnum"
label="良好人数"
/>
<el-table-column
prop="liangbl"
label="良好占比"
/>
<el-table-column
prop="hegenum"
label="合格人数"
/>
<el-table-column
prop="hegebl"
label="合格占比"
/>
<el-table-column
prop="buhegenum"
width="120"
label="不合格人数"
/>
<el-table-column
prop="buhegebl"
width="120"
label="不合格占比"
/>
<el-table-column
label="操作"
fixed="right"
width="150"
>
<template slot-scope="scope">
<el-button type="primary" size="small" @click="handleEdit(scope.$index, scope.row)">考试分析</el-button>
</template>
</el-table-column>
</el-table>
<el-table
v-if="gradeFlag"
ref="multipleTable"
:data="gradeData"
tooltip-effect="dark"
style="width: 100%"
>
<el-table-column
prop="no"
width="50"
label="排名"
/>
<el-table-column
prop="name"
label="姓名"
/>
<el-table-column
prop="studentno"
label="学号"
/>
<el-table-column
prop="testtime"
label="考试时间"
/>
<el-table-column
prop="score"
label="得分"
/>
<el-table-column
prop="rightbl"
label="正确率"
/>
</el-table>
</div>
</div>
</template>
<script>
import Dec from '@/components/Dec'
export default {
name: 'Testpaper',
components: {
Dec
},
data() {
return {
content: '',
testpaperVal: '',
classFlag: false,
gradeFlag: false,
testpaper: [
{
label: '试卷1',
value: '001'
}
],
classData: [
{
no: '1',
classes: '三年二班',
classid: '20190202',
testtime: '2020-02-02 03:03',
avg: '98',
younum: '50',
youbl: '100%',
laingnum: '0',
liangbl: '0%',
hegenum: '0',
hegebl: '0%',
buhegenum: '0',
buhegebl: '0%'
}
],
gradeData: [
{
no: '1',
name: '张三',
studentno: '20100304',
testtime: '',
score: '98',
rightbl: ''
}
]
}
},
methods: {
classclick() {
this.classFlag = true
this.gradeFlag = false
},
gradeclick() {
this.classFlag = false
this.gradeFlag = true
|