079cb4cf
梁保满
即时测导出
|
1
2
3
4
5
6
7
|
<template>
<div ref="main" class="page-container">
<back-box v-show="!isDetail">
<template slot="title">
<span>即时测-数据报表</span>
</template>
<template slot="btns">
|
f45b3c05
LH_PC
云平台新UI界面
|
8
9
|
<el-tooltip v-if="!code && gdClass" effect="dark" content="已归档试卷" placement="bottom">
<el-button type="primary" icon="fa fa-archive" size="mini" plain circle @click="toArchiving"></el-button>
|
079cb4cf
梁保满
即时测导出
|
10
11
12
13
|
</el-tooltip>
</template>
</back-box>
<div v-show="!isDetail" class="table-box" v-loading="loading">
|
1410e5cd
梁保满
即时测随堂问多班汇总逻辑
|
14
15
|
<div>
<p v-if="!isMultipleClass" class="btn-box">
|
0f3dca29
梁保满
教师格式化确认,报表列表添加去筛选按钮
|
16
|
<el-button type="primary" round @click="linkToTest">筛选</el-button>
|
f45b3c05
LH_PC
云平台新UI界面
|
17
|
<el-button type="primary" round @click="linkToDetail2">查看汇总报表</el-button>
|
079cb4cf
梁保满
即时测导出
|
18
|
</p>
|
f45b3c05
LH_PC
云平台新UI界面
|
19
|
<el-table :data="tableData" :max-height="tableMaxHeight" border style="width: 100%">
|
1410e5cd
梁保满
即时测随堂问多班汇总逻辑
|
20
|
<template v-if="isMultipleClass">
|
f45b3c05
LH_PC
云平台新UI界面
|
21
|
<el-table-column prop="subjectName" label="科目" align="center"></el-table-column>
|
1410e5cd
梁保满
即时测随堂问多班汇总逻辑
|
22
23
24
|
<el-table-column prop="classList" label="班级" align="center">
<template slot-scope="scoped">
<span v-for="(item, index) in scoped.row.classNames">{{
|
f45b3c05
LH_PC
云平台新UI界面
|
25
26
|
`${index == 0 ? "" : "/"}` + item
}}</span>
|
1410e5cd
梁保满
即时测随堂问多班汇总逻辑
|
27
28
|
</template>
</el-table-column>
|
f45b3c05
LH_PC
云平台新UI界面
|
29
30
|
<el-table-column prop="title" label="试卷名称" align="center"></el-table-column>
<el-table-column prop="examPaperScore" label="卷面分" align="center"></el-table-column>
|
1410e5cd
梁保满
即时测随堂问多班汇总逻辑
|
31
32
|
<el-table-column label="操作" align="center">
<template slot-scope="scoped">
|
f45b3c05
LH_PC
云平台新UI界面
|
33
34
|
<el-button type="primary" circle size="mini" icon="el-icon-arrow-right"
@click="linkContrast(scoped.row)"></el-button>
|
1410e5cd
梁保满
即时测随堂问多班汇总逻辑
|
35
36
37
38
39
40
|
</template>
</el-table-column>
</template>
<template v-if="!isMultipleClass">
<el-table-column width="48">
<template slot-scope="scope">
|
f45b3c05
LH_PC
云平台新UI界面
|
41
42
|
<el-checkbox v-model="multipleSelection" :label="scope.row.id"
:disabled="checkboxDisabled(scope.row)"><span></span></el-checkbox>
|
1410e5cd
梁保满
即时测随堂问多班汇总逻辑
|
43
44
|
</template>
</el-table-column>
|
f45b3c05
LH_PC
云平台新UI界面
|
45
46
47
48
|
<el-table-column prop="subjectName" label="科目" align="center"></el-table-column>
<el-table-column prop="className" label="班级" align="center"></el-table-column>
<el-table-column prop="title" label="试卷名称" align="center"></el-table-column>
<el-table-column prop="examPaperScore" label="卷面分" align="center"></el-table-column>
|
1410e5cd
梁保满
即时测随堂问多班汇总逻辑
|
49
50
|
<el-table-column label="测验人数/班级人数" align="center">
<template slot-scope="scoped">{{
|
f45b3c05
LH_PC
云平台新UI界面
|
51
52
|
`${scoped.row.answeredNum}/${scoped.row.classPersonNum}`
}}</template>
|
1410e5cd
梁保满
即时测随堂问多班汇总逻辑
|
53
|
</el-table-column>
|
f45b3c05
LH_PC
云平台新UI界面
|
54
|
<el-table-column prop="examStartTime" label="测验开始时间" align="center"></el-table-column>
|
1410e5cd
梁保满
即时测随堂问多班汇总逻辑
|
55
56
|
<el-table-column label="操作" align="center">
<template slot-scope="scoped">
|
f45b3c05
LH_PC
云平台新UI界面
|
57
58
59
60
61
62
|
<el-tooltip v-if="scoped.row.answerNum != 0 ||
(scoped.row.recordStatus != 0 &&
scoped.row.subjectiveScore == scoped.row.examPaperScore)
" effect="dark" content="详情" placement="top">
<el-button type="primary" circle size="mini" icon="fa fa-arrow-right"
@click="linkTo(scoped.row)"></el-button>
|
079cb4cf
梁保满
即时测导出
|
63
|
</el-tooltip>
|
f45b3c05
LH_PC
云平台新UI界面
|
64
65
66
67
68
69
|
<template v-if="scoped.row.answerNum == 0 &&
scoped.row.subjectiveScore != scoped.row.examPaperScore
">
<el-tooltip v-if="role != 'ROLE_BANZHUREN'" effect="dark" content="设置答案" placement="top">
<el-button type="primary" circle size="mini" icon="fa fa-file-text"
@click="edit(scoped.row)"></el-button>
|
1410e5cd
梁保满
即时测随堂问多班汇总逻辑
|
70
71
72
|
</el-tooltip>
<template v-else>未设置答案</template>
</template>
|
f45b3c05
LH_PC
云平台新UI界面
|
73
|
<template v-if="role != 'ROLE_BANZHUREN' && scoped.row.examPaperId != 0">
|
861f5e84
梁保满
录分设置
|
74
|
<template>
|
d0935986
梁保满
录分层级问题
|
75
|
<el-popover placement="bottom" width="194" ref="popoverRef">
|
f45b3c05
LH_PC
云平台新UI界面
|
76
77
78
79
80
81
82
83
|
<div style="display: flex" v-loading="scoped.row.showSelect == 0 ||
scoped.row.showSelect == 1
? false
: true
">
<el-button v-if="scoped.row.showSelect == 0" size="mini"
@click="openScoreSet(scoped.row, 1)">录入总得分</el-button>
<el-button type="primary" size="mini" @click="openScoreSet(scoped.row, 2)">录入小题分</el-button>
|
861f5e84
梁保满
录分设置
|
84
|
</div>
|
f45b3c05
LH_PC
云平台新UI界面
|
85
86
|
<el-button class="remove-test" slot="reference" type="primary" circle size="mini"
@click="queryStatus(scoped.row)">分</el-button>
|
861f5e84
梁保满
录分设置
|
87
88
89
|
</el-popover>
</template>
</template>
|
f45b3c05
LH_PC
云平台新UI界面
|
90
91
92
93
|
<el-popconfirm v-if="role != 'ROLE_BANZHUREN'" title="确定删除吗?"
@confirm="removeReport(scoped.row, scoped.$index)">
<el-button class="remove-test" slot="reference" type="danger" circle size="mini" icon="el-icon-delete"
:loading="scoped.row.loading"></el-button>
|
1410e5cd
梁保满
即时测随堂问多班汇总逻辑
|
94
95
96
97
|
</el-popconfirm>
</template>
</el-table-column>
</template>
|
079cb4cf
梁保满
即时测导出
|
98
99
|
</el-table>
<div class="pagination-box">
|
f45b3c05
LH_PC
云平台新UI界面
|
100
101
|
<el-pagination small="" layout="total,prev, pager, next" :hide-on-single-page="true" :total="total"
@current-change="changePage" :current-page="page" :page-size="size">
|
079cb4cf
梁保满
即时测导出
|
102
103
|
</el-pagination>
</div>
|
f45b3c05
LH_PC
云平台新UI界面
|
104
105
106
|
<ScoreSet v-show="diaScoreSet" :diaScoreSet="diaScoreSet" :role="role" :id="examId" :title="examTitlt"
:examScore="examScore" :showAllSetScore="showAllSetScore" :showSetScore="showSetScore"
@closeScoreSet="closeScoreSet" @SuccessScoreSet="SuccessScoreSet" />
|
079cb4cf
梁保满
即时测导出
|
107
|
</div>
|
079cb4cf
梁保满
即时测导出
|
108
109
110
111
112
113
|
</div>
<router-view v-show="isDetail"></router-view>
</div>
</template>
<script>
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
114
|
import ScoreSet from "./components/scoreSet.vue";
|
079cb4cf
梁保满
即时测导出
|
115
116
|
export default {
components: {
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
117
|
ScoreSet,
|
079cb4cf
梁保满
即时测导出
|
118
119
120
121
122
123
124
125
126
|
},
data() {
return {
code: "",
gdClass: 0, //已归档班级数量
tableMaxHeight: null,
role: "",
loading: false,
diaScoreSet: false,
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
127
128
129
|
examId: "", //当前操作试卷
examTitlt: "", //当前操作试卷名称
examScore: 0, //当前操作试卷卷面总分
|
861f5e84
梁保满
录分设置
|
130
131
|
showAllSetScore: false, //当前操作试卷可录总分分状态
showSetScore: false, //当前操作试卷可录小题分状态
|
079cb4cf
梁保满
即时测导出
|
132
133
134
135
136
137
138
139
|
query: {
//搜索条件
classId: [],
subjectNames: [],
startDay: "",
endDay: "",
},
multipleSelection: [],
|
e9713b69
梁保满
备题支持无大题
|
140
|
multipleSelectionObj: {},
|
079cb4cf
梁保满
即时测导出
|
141
142
143
144
145
146
147
148
149
|
tableData: [],
page: 1,
size: 20,
total: 0,
isMultipleClass: false,
};
},
computed: {
isDetail: function () {
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
150
151
152
|
let bol = this.$route.name == "即时测报表分析" ? true : false;
return bol;
},
|
079cb4cf
梁保满
即时测导出
|
153
154
|
},
async created() {
|
7812e986
梁保满
班主任查看报表添加额外信息
|
155
|
this.code = this.$store.getters.csCode;
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
156
|
this.init();
|
079cb4cf
梁保满
即时测导出
|
157
158
159
160
161
162
163
164
|
},
mounted() {
this.tableMaxHeight = this.$refs.main.offsetHeight;
},
watch: {
"$route.query.params": function (nVal) {
let isFromTestDetail = sessionStorage.getItem("isFromTestDetail");
if (!isFromTestDetail && nVal) {
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
165
|
this.init();
|
079cb4cf
梁保满
即时测导出
|
166
|
}
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
167
|
},
|
e9713b69
梁保满
备题支持无大题
|
168
169
170
171
172
173
174
175
|
multipleSelection: {
handler: function (nVal) {
this.multipleSelectionObj[this.page] = this.tableData.filter((item) =>
nVal.includes(item.id)
);
},
deep: true,
},
|
079cb4cf
梁保满
即时测导出
|
176
177
178
179
|
},
methods: {
//初始化
init() {
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
180
181
182
183
|
const queryData = this.$route.query.params;
queryData
? (this.query = { ...this.query, ...JSON.parse(queryData) })
: "";
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
184
185
|
this.$store.commit("setClasses", this.query.classId.join(","));
this.isMultipleClass = false;
|
079cb4cf
梁保满
即时测导出
|
186
187
188
189
|
this.role =
this.$store.getters.info.showRole ||
this.$store.getters.info.permissions[0].role;
if (this.role != "ROLE_PERSONAL") {
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
190
|
this._QueryGdClass();
|
079cb4cf
梁保满
即时测导出
|
191
|
}
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
192
193
194
195
|
this.page = 1;
this.total = 0;
this.tableData = [];
this._QueryData();
|
079cb4cf
梁保满
即时测导出
|
196
197
198
199
200
201
202
|
},
//归档列表
toArchiving() {
this.$router.push({
path: "/testArchiving",
});
},
|
0f3dca29
梁保满
教师格式化确认,报表列表添加去筛选按钮
|
203
204
205
206
207
208
|
//去筛选
linkToTest() {
this.$router.push({
path: "/test",
});
},
|
079cb4cf
梁保满
即时测导出
|
209
210
211
212
213
214
215
216
217
|
//跳转单卷分析
linkTo(obj) {
//去详情
this.$router.push({
path: "/testAnalysis",
query: {
id: obj.id,
title: obj.title,
score: obj.examPaperScore || 0,
|
ab315758
梁保满
即时测主观题列表设置操作
|
218
|
type: 1, //试卷类型
|
22095aba
梁保满
接口联调
|
219
|
subjectName: obj.subjectName,
|
861f5e84
梁保满
录分设置
|
220
|
classIds: obj.classId,
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
221
|
params: this.$route.query.params,
|
03cd547e
梁保满
单体型以及其他类型试卷修改答案逻辑
|
222
|
examType: obj.examPaperId == 0 ? 1 : 2,
|
079cb4cf
梁保满
即时测导出
|
223
224
225
226
227
228
|
},
});
},
//汇总跳转-多卷
linkToDetail2() {
if (this.multipleSelection.length == 0) {
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
229
230
231
232
|
this.$message.warning("请选择试卷!");
return;
}
let subjectArr = [];
|
7222c2eb
梁保满
汇总前置条件修改,教学,行政可汇总
|
233
|
let classIds = [];
|
b0cd2598
梁保满
fix:测试问题
|
234
|
let multipleData = [];
|
e9713b69
梁保满
备题支持无大题
|
235
236
237
238
239
240
241
|
let multipleSelectionData = [];
Object.keys(this.multipleSelectionObj).map((keys) => {
multipleSelectionData = multipleSelectionData.concat(
this.multipleSelectionObj[keys]
);
});
multipleSelectionData.map((item) => {
|
b0cd2598
梁保满
fix:测试问题
|
242
243
244
|
if (this.multipleSelection.includes(item.id)) {
subjectArr.push(item.subjectName);
multipleData.push(item);
|
7222c2eb
梁保满
汇总前置条件修改,教学,行政可汇总
|
245
|
classIds.push(item.classId);
|
b0cd2598
梁保满
fix:测试问题
|
246
|
}
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
247
248
|
});
subjectArr = [...new Set(subjectArr)];
|
7222c2eb
梁保满
汇总前置条件修改,教学,行政可汇总
|
249
|
classIds = [...new Set(classIds)];
|
b0cd2598
梁保满
fix:测试问题
|
250
|
if (this.multipleSelection.length == 1) {
|
68875fba
梁保满
即时测多班汇总(删除)
|
251
252
253
|
this.$router.push({
path: "/testAnalysis",
query: {
|
b0cd2598
梁保满
fix:测试问题
|
254
|
id: this.multipleSelection[0],
|
c410e3c4
梁保满
init
|
255
256
|
title: multipleData[0].title,
score: multipleData[0].examPaperScore || 0,
|
68875fba
梁保满
即时测多班汇总(删除)
|
257
258
|
type: 1,
subjectName: subjectArr.join(),
|
861f5e84
梁保满
录分设置
|
259
|
classIds: classIds.join(),
|
68875fba
梁保满
即时测多班汇总(删除)
|
260
261
262
263
|
params: this.$route.query.params,
},
});
} else {
|
079cb4cf
梁保满
即时测导出
|
264
265
266
267
|
//去详情
this.$router.push({
path: "/testAnalysis",
query: {
|
b0cd2598
梁保满
fix:测试问题
|
268
|
ids: this.multipleSelection.join(),
|
861f5e84
梁保满
录分设置
|
269
|
classIds: classIds.join(),
|
68875fba
梁保满
即时测多班汇总(删除)
|
270
|
type: subjectArr.length == 1 ? 2 : 3,
|
22095aba
梁保满
接口联调
|
271
|
subjectName: subjectArr.join(),
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
272
|
params: this.$route.query.params,
|
079cb4cf
梁保满
即时测导出
|
273
274
|
},
});
|
079cb4cf
梁保满
即时测导出
|
275
276
277
278
|
}
},
// 多班对比
linkContrast(obj) {
|
079cb4cf
梁保满
即时测导出
|
279
280
281
|
this.$router.push({
path: "/testAnalysis",
query: {
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
282
283
|
ids: obj.ids.join(","),
classId: obj.classIds.join(","),
|
079cb4cf
梁保满
即时测导出
|
284
285
|
subjectName: obj.subjectName,
title: obj.title,
|
049db2b2
梁保满
接口联调
|
286
|
type: 4,
|
c7461233
梁保满
多班对比传递页面总分
|
287
|
examPaperScore: obj.examPaperScore,
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
288
|
params: this.$route.query.params,
|
079cb4cf
梁保满
即时测导出
|
289
290
291
|
},
});
},
|
c3c2b127
梁保满
即时测多班汇总
|
292
293
|
// 班主任教学班不能与行政班汇总
checkboxDisabled(obj) {
|
e93f8636
梁保满
即使测列表角色权限操作问题
|
294
|
if (obj.examStartTime) {
|
7222c2eb
梁保满
汇总前置条件修改,教学,行政可汇总
|
295
296
297
298
299
300
301
302
303
304
305
306
307
308
|
// if (this.role == "ROLE_BANZHUREN") {
// let classId =
// (this.multipleSelectionObj[1] &&
// this.multipleSelectionObj[1][0]?.classId) ||
// "";
// if (classId) {
// return obj.classId == classId ? false : true;
// } else {
// return false;
// }
// } else {
// return false;
// }
return false;
|
b248db27
梁保满
课件模版区分,错别字修改,录分成功...
|
309
|
} else {
|
e93f8636
梁保满
即使测列表角色权限操作问题
|
310
|
return true;
|
c3c2b127
梁保满
即时测多班汇总
|
311
312
|
}
},
|
079cb4cf
梁保满
即时测导出
|
313
314
315
|
handleSelectionChange(val) {
this.multipleSelection = val;
},
|
861f5e84
梁保满
录分设置
|
316
317
318
319
320
321
322
323
324
325
326
327
328
329
|
//已录分状态
async queryStatus(obj) {
const { data, status, info } = await this.$request.getScoreType({
examId: obj.id,
});
if (status === 0) {
// if (data == 1) {
// this.openScoreSet(obj, 2);
// }
obj.showSelect = data;
} else {
this.$message.error(info);
}
},
|
079cb4cf
梁保满
即时测导出
|
330
|
//打开答卷录分
|
861f5e84
梁保满
录分设置
|
331
|
openScoreSet(obj, type) {
|
d0935986
梁保满
录分层级问题
|
332
|
this.$refs.main.click();
|
861f5e84
梁保满
录分设置
|
333
334
|
this.showAllSetScore = type == 1 ? true : false;
this.showSetScore = type == 2 ? true : false;
|
77da338a
梁保满
自测问题修改
|
335
|
this.examId = String(obj.id);
|
079cb4cf
梁保满
即时测导出
|
336
|
this.examTitlt = obj.title;
|
384a2a54
梁保满
请求头添加班主任信息,bug修改
|
337
|
this.examScore = obj.examPaperScore;
|
079cb4cf
梁保满
即时测导出
|
338
339
340
341
|
this.diaScoreSet = true;
},
//关闭设置分数
closeScoreSet() {
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
342
|
this.diaScoreSet = false;
|
079cb4cf
梁保满
即时测导出
|
343
|
},
|
b248db27
梁保满
课件模版区分,错别字修改,录分成功...
|
344
345
346
347
348
|
//修改分数成功
SuccessScoreSet() {
this._QueryData();
this.closeScoreSet();
},
|
079cb4cf
梁保满
即时测导出
|
349
350
351
352
353
354
355
|
//修改答案
edit(item) {
this.$router.push({
path: "/examinationPaperEdit",
query: {
paperId: item.id,
title: item.title,
|
ab315758
梁保满
即时测主观题列表设置操作
|
356
|
type: 2, //搜索题目详情类型
|
7f5613f1
梁保满
设置答案问题
|
357
|
examType: item.examPaperId == 0 ? 1 : 2,
|
079cb4cf
梁保满
即时测导出
|
358
359
360
|
},
});
},
|
a9f5dfcf
梁保满
修改知识点匹配,删除即时测报表
|
361
362
363
364
365
366
367
368
|
//删除即时测考试
async removeReport(obj, index) {
this.tableData[index].loading = true;
const { data, status, info } = await this.$request.deleteReport({
id: obj.id,
});
if (status === 0) {
this.$message.success("删除成功!");
|
a736cb8b
梁保满
fix:教师管理班级权限问题,删除...
|
369
|
this._QueryData();
|
a9f5dfcf
梁保满
修改知识点匹配,删除即时测报表
|
370
371
372
373
|
} else {
this.$message.error(info);
}
},
|
079cb4cf
梁保满
即时测导出
|
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
|
async _QueryGdClass() {
const fetchClassList =
this.role == "ROLE_BANZHUREN"
? this.$request.cTClassList
: this.$request.tClassList;
const { data, status, info } = await fetchClassList({ status: 1 });
if (status === 0) {
this.gdClass = data?.list?.length || 0;
} else {
this.$message.error(info);
}
},
changePage(page) {
this.page = page;
this._QueryData();
},
async _QueryData() {
this.loading = true;
let query = {};
for (let key in this.query) {
if (this.query[key] != "") {
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
396
|
if (key == "classId") {
|
7812e986
梁保满
班主任查看报表添加额外信息
|
397
|
if (this.query.classId?.length == 1) {
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
398
|
query.classId = this.query[key][0];
|
22095aba
梁保满
接口联调
|
399
|
} else {
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
400
|
query.classIds = [...this.query[key]];
|
22095aba
梁保满
接口联调
|
401
402
403
404
|
}
} else {
query[key] = this.query[key];
}
|
079cb4cf
梁保满
即时测导出
|
405
406
|
}
}
|
572de367
梁保满
多班对比问题
|
407
408
409
410
|
let pageSize = this.size;
if (this.query.classId?.length > 1) {
pageSize = 9999;
}
|
109a6161
梁保满
班主任汇总选择问题
|
411
|
this.tableData = [];
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
412
413
414
415
|
const examReportList =
this.role == "ROLE_PERSONAL"
? this.$request.pExamReportList
: this.$request.examReportList;
|
079cb4cf
梁保满
即时测导出
|
416
417
418
|
const { data, status, info } = await examReportList({
...query,
page: this.page,
|
572de367
梁保满
多班对比问题
|
419
|
size: pageSize,
|
079cb4cf
梁保满
即时测导出
|
420
421
422
|
});
this.loading = false;
if (status === 0) {
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
423
|
if (this.role == "ROLE_BANZHUREN") {
|
1410e5cd
梁保满
即时测随堂问多班汇总逻辑
|
424
|
this.isMultipleClass = false;
|
861f5e84
梁保满
录分设置
|
425
426
427
428
429
|
this.tableData =
data?.list?.map((item) => {
item.showSelect = false;
return item;
}) || [];
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
430
431
|
this.total = data?.count || 0;
} else {
|
1410e5cd
梁保满
即时测随堂问多班汇总逻辑
|
432
433
|
if (this.query.classId.length > 1) {
this.isMultipleClass = true;
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
434
435
|
//多班级
let tableObj = {};
|
e93f8636
梁保满
即使测列表角色权限操作问题
|
436
437
438
439
440
|
let dataList =
data?.list?.filter((item) => {
return item.examStatus == 2;
}) || [];
dataList?.map((item) => {
|
b0cd2598
梁保满
fix:测试问题
|
441
|
if (tableObj[item.examPaperId] && item.examPaperId != 0) {
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
|
// 没有班级考试的添加
if (
!tableObj[item.examPaperId].classIds.includes(item.classId)
) {
tableObj[item.examPaperId].ids.push(item.id);
tableObj[item.examPaperId].classIds.push(item.classId);
tableObj[item.examPaperId].classNames.push(item.className);
} else {
//已经考过班级的新的替换老的
let idx = tableObj[item.examPaperId].classIds.indexOf(
item.classId
);
if (tableObj[item.examPaperId].ids[idx] < item.id) {
tableObj[item.examPaperId].ids[idx] = [item.id];
tableObj[item.examPaperId].title = item.title;
}
|
384a2a54
梁保满
请求头添加班主任信息,bug修改
|
458
|
}
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
459
460
461
462
463
464
465
466
467
468
|
} else {
tableObj[item.examPaperId] = {
ids: [item.id],
examPaperId: item.examPaperId,
classIds: [item.classId],
classNames: [item.className],
title: item.title,
examPaperScore: item.examPaperScore,
subjectName: item.subjectName,
};
|
384a2a54
梁保满
请求头添加班主任信息,bug修改
|
469
|
}
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
470
471
472
473
|
});
Object.keys(tableObj).map((keys) => {
if (tableObj[keys].classIds.length > 1) {
this.tableData.push(tableObj[keys]);
|
7812e986
梁保满
班主任查看报表添加额外信息
|
474
|
}
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
475
476
|
});
} else {
|
1410e5cd
梁保满
即时测随堂问多班汇总逻辑
|
477
|
this.isMultipleClass = false;
|
861f5e84
梁保满
录分设置
|
478
479
480
481
482
|
this.tableData =
data?.list?.map((item) => {
item.showSelect = false;
return item;
}) || [];
|
58744c8c
梁保满
即时测多班淡斑逻辑修改
|
483
484
|
this.total = data?.count || 0;
}
|
7812e986
梁保满
班主任查看报表添加额外信息
|
485
|
}
|
079cb4cf
梁保满
即时测导出
|
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
|
} else {
this.$message.error(info);
}
},
},
};
</script>
<style>
div::-webkit-scrollbar {
width: 3px;
height: 10px;
}
div::-webkit-scrollbar-thumb {
border-radius: 10px;
background-color: #ccc;
}
</style>
<style lang="scss" scoped>
|
a9f5dfcf
梁保满
修改知识点匹配,删除即时测报表
|
506
507
508
509
|
.remove-test {
margin-left: 10px;
}
|
079cb4cf
梁保满
即时测导出
|
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
|
.page-container {
position: relative;
height: 100%;
&.active {
overflow: hidden;
}
}
.table-box {
margin: 20px;
border-radius: 5px;
:deep(.fa-arrow-right) {
padding-left: 2px;
}
:deep(.fa-file-text) {
padding-left: 2px;
}
}
.down {
padding-top: 16px;
}
.click-b {
cursor: pointer;
color: #409eff;
text-decoration: underline;
}
.btn-box {
|
0f3dca29
梁保满
教师格式化确认,报表列表添加去筛选按钮
|
543
544
545
|
display: flex;
justify-content: space-between;
padding: 0 12px 16px 0;
|
948b6a2c
梁保满
汇总按钮样式调整
|
546
547
548
|
position: sticky;
top: 4px;
z-index: 10;
|
079cb4cf
梁保满
即时测导出
|
549
|
}
|
f45b3c05
LH_PC
云平台新UI界面
|
550
|
</style>
|