Commit 68875fbab6886c12528483a9328c1d0540eed098

Authored by 梁保满
1 parent c3c2b127

即时测多班汇总(删除)

src/views/basic/test/components/multipleClass.vue deleted
src/views/basic/test/list.vue
... ... @@ -251,7 +251,6 @@ export default {
251 251 endDay: "",
252 252 },
253 253 multipleSelection: [],
254   - multipleSelectionClassId: [],
255 254 tableData: [],
256 255 page: 1,
257 256 size: 20,
... ... @@ -336,45 +335,31 @@ export default {
336 335 });
337 336 subjectArr = [...new Set(subjectArr)];
338 337 console.log(subjectArr);
339   - if (this.multipleSelectionClassId.length > 1) {
  338 + if (ids.length == 1) {
  339 + this.$router.push({
  340 + path: "/testAnalysis",
  341 + query: {
  342 + id: ids[0],
  343 + title: this.multipleSelection[0].title,
  344 + score: this.multipleSelection[0].examPaperScore || 0,
  345 + type: 1,
  346 + subjectName: subjectArr.join(),
  347 + classId: this.query.classId[0],
  348 + params: this.$route.query.params,
  349 + },
  350 + });
  351 + } else {
340 352 //去详情
341 353 this.$router.push({
342 354 path: "/testAnalysis",
343 355 query: {
344 356 ids: ids.join(),
345   - classId: this.multipleSelectionClassId.join(),
346   - type: 5,
  357 + classId: this.query.classId[0],
  358 + type: subjectArr.length == 1 ? 2 : 3,
347 359 subjectName: subjectArr.join(),
348 360 params: this.$route.query.params,
349 361 },
350 362 });
351   - } else {
352   - if (ids.length == 1) {
353   - this.$router.push({
354   - path: "/testAnalysis",
355   - query: {
356   - id: ids[0],
357   - title: this.multipleSelection[0].title,
358   - score: this.multipleSelection[0].examPaperScore || 0,
359   - type: 1,
360   - subjectName: subjectArr.join(),
361   - classId: this.query.classId[0],
362   - params: this.$route.query.params,
363   - },
364   - });
365   - } else {
366   - //去详情
367   - this.$router.push({
368   - path: "/testAnalysis",
369   - query: {
370   - ids: ids.join(),
371   - classId: this.query.classId[0],
372   - type: subjectArr.length == 1 ? 2 : 3,
373   - subjectName: subjectArr.join(),
374   - params: this.$route.query.params,
375   - },
376   - });
377   - }
378 363 }
379 364 },
380 365 // 多班对比
... ... @@ -497,14 +482,13 @@ export default {
497 482 this.total = data?.count || 0;
498 483 } else {
499 484 this.isMultipleClass = true;
500   - this.multipleSelectionClassId = [];
  485 + let classArr = [];
501 486 data?.list?.map((item) => {
502   - if (!this.multipleSelectionClassId.includes(item.classId)) {
503   - this.multipleSelectionClassId.push(item.classId);
  487 + if (!classArr.includes(item.classId)) {
  488 + classArr.push(item.classId);
504 489 }
505 490 });
506   -
507   - if (this.multipleSelectionClassId.length > 1) {
  491 + if (classArr.length > 1) {
508 492 //多班级
509 493 let tableObj = {};
510 494 data?.list?.map((item) => {
... ...