touchstudy-core 0.1.40 → 0.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/containers/ExamResult/configs/constants.d.ts +73 -0
- package/dist/containers/ExamResult/hooks/useExamResult.d.ts +105 -25
- package/dist/index.js +891 -830
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +891 -830
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -2126,7 +2126,7 @@ var extra_time$1 = "Extra time";
|
|
2126
2126
|
var complete$1 = "Complete";
|
2127
2127
|
var current_exam$1 = "Current exam";
|
2128
2128
|
var current_time$1 = "Current time";
|
2129
|
-
var exam_time$1 = "
|
2129
|
+
var exam_time$1 = "Exam time";
|
2130
2130
|
var time_remaining$1 = "Time remaining";
|
2131
2131
|
var number_results$1 = "{{number}} Results";
|
2132
2132
|
var number_result$1 = "{{number}} Result";
|
@@ -8433,681 +8433,760 @@ var Roles$1;
|
|
8433
8433
|
Roles["Admin"] = "Admin";
|
8434
8434
|
})(Roles$1 || (Roles$1 = {}));
|
8435
8435
|
var EXAM_RESULT = {
|
8436
|
-
|
8437
|
-
|
8438
|
-
|
8439
|
-
|
8440
|
-
|
8441
|
-
|
8442
|
-
|
8443
|
-
|
8444
|
-
|
8445
|
-
|
8446
|
-
|
8447
|
-
|
8448
|
-
|
8449
|
-
|
8450
|
-
|
8451
|
-
|
8452
|
-
|
8453
|
-
|
8454
|
-
|
8455
|
-
|
8456
|
-
|
8457
|
-
|
8458
|
-
|
8459
|
-
|
8436
|
+
id: 6047,
|
8437
|
+
teacherId: 1,
|
8438
|
+
title: "EXAMPLE EXAM",
|
8439
|
+
examSessionId: 8,
|
8440
|
+
description: "",
|
8441
|
+
image: "",
|
8442
|
+
type: "",
|
8443
|
+
teacherName: "Admin",
|
8444
|
+
teacherAvatar: "https://lh3.googleusercontent.com/a/ACg8ocKoBjuFGZfJYrpnWcDgDRSy0AcVYTOP6s-WWLgxecLmRg=s96-c",
|
8445
|
+
finishTime: "0001-01-01T00:00:00+00:00",
|
8446
|
+
status: 3,
|
8447
|
+
startTime: "2024-03-13T04:28:48.768643+00:00",
|
8448
|
+
duration: "01:00:00",
|
8449
|
+
student: {
|
8450
|
+
id: 1001,
|
8451
|
+
phoneNumber: "",
|
8452
|
+
email: "",
|
8453
|
+
avatar: "https://lh3.googleusercontent.com/a/ACg8ocKtZwjUWLrcUGGP8Vf4i39FjR8rWYz0rDzwcpUBwgyDxm4=s96-c",
|
8454
|
+
parentName: "",
|
8455
|
+
parentPhoneNumber: "",
|
8456
|
+
schoolName: "Academy",
|
8457
|
+
className: "1",
|
8458
|
+
major: "",
|
8459
|
+
roles: []
|
8460
8460
|
},
|
8461
|
-
|
8462
|
-
|
8463
|
-
|
8464
|
-
|
8465
|
-
|
8466
|
-
|
8467
|
-
|
8468
|
-
|
8469
|
-
|
8470
|
-
|
8471
|
-
|
8472
|
-
|
8473
|
-
|
8474
|
-
|
8475
|
-
|
8476
|
-
|
8477
|
-
|
8478
|
-
|
8479
|
-
|
8461
|
+
questions: [{
|
8462
|
+
id: 8144,
|
8463
|
+
selectedAnswers: "1",
|
8464
|
+
correctAnswers: "2",
|
8465
|
+
isStar: false,
|
8466
|
+
duration: 320.939,
|
8467
|
+
classAverageTime: 238.939,
|
8468
|
+
topDuration: 180.939,
|
8469
|
+
answerResponseSignal: 0,
|
8470
|
+
isCorrect: false,
|
8471
|
+
answerTime: "2024-03-13T04:29:00.685+00:00",
|
8472
|
+
article: 1,
|
8473
|
+
category: {
|
8474
|
+
parentCategoryId: 5,
|
8475
|
+
name: "New category",
|
8476
|
+
path: "",
|
8477
|
+
numberOfQuestions: 0,
|
8478
|
+
numberOfChildren: 0,
|
8479
|
+
id: 7
|
8480
8480
|
},
|
8481
|
-
|
8482
|
-
|
8481
|
+
overallCorrectRate: 77,
|
8482
|
+
questionOrder: 0
|
8483
8483
|
}, {
|
8484
|
-
|
8485
|
-
|
8486
|
-
|
8487
|
-
|
8488
|
-
|
8489
|
-
|
8490
|
-
|
8491
|
-
|
8492
|
-
|
8493
|
-
|
8494
|
-
|
8495
|
-
|
8496
|
-
|
8497
|
-
|
8498
|
-
|
8499
|
-
|
8500
|
-
|
8501
|
-
|
8484
|
+
id: 8145,
|
8485
|
+
selectedAnswers: "2",
|
8486
|
+
correctAnswers: "3",
|
8487
|
+
isStar: false,
|
8488
|
+
duration: 2.014,
|
8489
|
+
classAverageTime: 2.014,
|
8490
|
+
topDuration: 2.014,
|
8491
|
+
answerResponseSignal: 1,
|
8492
|
+
isCorrect: false,
|
8493
|
+
answerTime: "2024-03-13T04:29:02.7+00:00",
|
8494
|
+
article: 1,
|
8495
|
+
category: {
|
8496
|
+
parentCategoryId: 5,
|
8497
|
+
name: "New category",
|
8498
|
+
path: "",
|
8499
|
+
numberOfQuestions: 0,
|
8500
|
+
numberOfChildren: 0,
|
8501
|
+
id: 7
|
8502
8502
|
},
|
8503
|
-
|
8504
|
-
|
8503
|
+
overallCorrectRate: 64,
|
8504
|
+
questionOrder: 1
|
8505
8505
|
}, {
|
8506
|
-
|
8507
|
-
|
8508
|
-
|
8509
|
-
|
8510
|
-
|
8511
|
-
|
8512
|
-
|
8513
|
-
|
8514
|
-
|
8515
|
-
|
8516
|
-
|
8517
|
-
|
8518
|
-
|
8519
|
-
|
8520
|
-
|
8521
|
-
|
8522
|
-
|
8523
|
-
|
8506
|
+
id: 8146,
|
8507
|
+
selectedAnswers: "1",
|
8508
|
+
correctAnswers: "2",
|
8509
|
+
isStar: false,
|
8510
|
+
duration: 72.244,
|
8511
|
+
classAverageTime: 52.244,
|
8512
|
+
topDuration: 24.244,
|
8513
|
+
answerResponseSignal: 1,
|
8514
|
+
isCorrect: false,
|
8515
|
+
answerTime: "2024-03-13T04:29:04.944+00:00",
|
8516
|
+
article: 1,
|
8517
|
+
category: {
|
8518
|
+
parentCategoryId: 5,
|
8519
|
+
name: "New category",
|
8520
|
+
path: "",
|
8521
|
+
numberOfQuestions: 0,
|
8522
|
+
numberOfChildren: 0,
|
8523
|
+
id: 7
|
8524
8524
|
},
|
8525
|
-
|
8526
|
-
|
8525
|
+
overallCorrectRate: 85,
|
8526
|
+
questionOrder: 2
|
8527
8527
|
}, {
|
8528
|
-
|
8529
|
-
|
8530
|
-
|
8531
|
-
|
8532
|
-
|
8533
|
-
|
8534
|
-
|
8535
|
-
|
8536
|
-
|
8537
|
-
|
8538
|
-
|
8539
|
-
|
8540
|
-
|
8541
|
-
|
8542
|
-
|
8543
|
-
|
8544
|
-
|
8545
|
-
|
8528
|
+
id: 8147,
|
8529
|
+
selectedAnswers: "1",
|
8530
|
+
correctAnswers: "1",
|
8531
|
+
isStar: false,
|
8532
|
+
duration: 1.373,
|
8533
|
+
classAverageTime: 1.373,
|
8534
|
+
topDuration: 1.373,
|
8535
|
+
answerResponseSignal: 4,
|
8536
|
+
isCorrect: true,
|
8537
|
+
answerTime: "2024-03-13T04:29:06.317+00:00",
|
8538
|
+
article: 1,
|
8539
|
+
category: {
|
8540
|
+
parentCategoryId: 5,
|
8541
|
+
name: "New category",
|
8542
|
+
path: "",
|
8543
|
+
numberOfQuestions: 0,
|
8544
|
+
numberOfChildren: 0,
|
8545
|
+
id: 7
|
8546
8546
|
},
|
8547
|
-
|
8548
|
-
|
8547
|
+
overallCorrectRate: 78.88,
|
8548
|
+
questionOrder: 3
|
8549
8549
|
}, {
|
8550
|
-
|
8551
|
-
|
8552
|
-
|
8553
|
-
|
8554
|
-
|
8555
|
-
|
8556
|
-
|
8557
|
-
|
8558
|
-
|
8559
|
-
|
8560
|
-
|
8561
|
-
|
8562
|
-
|
8563
|
-
|
8564
|
-
|
8565
|
-
|
8566
|
-
|
8567
|
-
|
8550
|
+
id: 8148,
|
8551
|
+
selectedAnswers: "3",
|
8552
|
+
correctAnswers: "4",
|
8553
|
+
isStar: false,
|
8554
|
+
duration: 120.683,
|
8555
|
+
classAverageTime: 132.683,
|
8556
|
+
topDuration: 110.683,
|
8557
|
+
answerResponseSignal: 2,
|
8558
|
+
isCorrect: false,
|
8559
|
+
answerTime: "2024-03-13T04:29:07+00:00",
|
8560
|
+
article: 1,
|
8561
|
+
category: {
|
8562
|
+
parentCategoryId: 5,
|
8563
|
+
name: "New category",
|
8564
|
+
path: "",
|
8565
|
+
numberOfQuestions: 0,
|
8566
|
+
numberOfChildren: 0,
|
8567
|
+
id: 7
|
8568
8568
|
},
|
8569
|
-
|
8570
|
-
|
8569
|
+
overallCorrectRate: 55.67,
|
8570
|
+
questionOrder: 4
|
8571
8571
|
}, {
|
8572
|
-
|
8573
|
-
|
8574
|
-
|
8575
|
-
|
8576
|
-
|
8577
|
-
|
8578
|
-
|
8579
|
-
|
8580
|
-
|
8581
|
-
|
8582
|
-
|
8583
|
-
|
8584
|
-
|
8585
|
-
|
8586
|
-
|
8587
|
-
|
8588
|
-
|
8589
|
-
|
8572
|
+
id: 8149,
|
8573
|
+
selectedAnswers: "2",
|
8574
|
+
correctAnswers: "2",
|
8575
|
+
isStar: false,
|
8576
|
+
duration: 1.052,
|
8577
|
+
classAverageTime: 1.052,
|
8578
|
+
topDuration: 1.052,
|
8579
|
+
answerResponseSignal: 1,
|
8580
|
+
isCorrect: true,
|
8581
|
+
answerTime: "2024-03-13T04:29:08.052+00:00",
|
8582
|
+
article: 2,
|
8583
|
+
category: {
|
8584
|
+
parentCategoryId: null,
|
8585
|
+
name: "123458868",
|
8586
|
+
path: "",
|
8587
|
+
numberOfQuestions: 0,
|
8588
|
+
numberOfChildren: 0,
|
8589
|
+
id: 1008
|
8590
8590
|
},
|
8591
|
-
|
8592
|
-
|
8591
|
+
overallCorrectRate: 100,
|
8592
|
+
questionOrder: 5
|
8593
8593
|
}, {
|
8594
|
-
|
8595
|
-
|
8596
|
-
|
8597
|
-
|
8598
|
-
|
8599
|
-
|
8600
|
-
|
8601
|
-
|
8602
|
-
|
8603
|
-
|
8604
|
-
|
8605
|
-
|
8606
|
-
|
8607
|
-
|
8608
|
-
|
8609
|
-
|
8610
|
-
|
8611
|
-
|
8594
|
+
id: 8150,
|
8595
|
+
selectedAnswers: "",
|
8596
|
+
correctAnswers: "3",
|
8597
|
+
isStar: false,
|
8598
|
+
duration: 0,
|
8599
|
+
classAverageTime: 0,
|
8600
|
+
topDuration: null,
|
8601
|
+
answerResponseSignal: null,
|
8602
|
+
isCorrect: false,
|
8603
|
+
answerTime: "0001-01-01T00:00:00+00:00",
|
8604
|
+
article: 2,
|
8605
|
+
category: {
|
8606
|
+
parentCategoryId: null,
|
8607
|
+
name: "123458868",
|
8608
|
+
path: "",
|
8609
|
+
numberOfQuestions: 0,
|
8610
|
+
numberOfChildren: 0,
|
8611
|
+
id: 1008
|
8612
8612
|
},
|
8613
|
-
|
8614
|
-
|
8613
|
+
overallCorrectRate: 55.67,
|
8614
|
+
questionOrder: 6
|
8615
8615
|
}, {
|
8616
|
-
|
8617
|
-
|
8618
|
-
|
8619
|
-
|
8620
|
-
|
8621
|
-
|
8622
|
-
|
8623
|
-
|
8624
|
-
|
8625
|
-
|
8626
|
-
|
8627
|
-
|
8628
|
-
|
8629
|
-
|
8630
|
-
|
8631
|
-
|
8632
|
-
|
8633
|
-
|
8616
|
+
id: 8151,
|
8617
|
+
selectedAnswers: "3",
|
8618
|
+
correctAnswers: "2",
|
8619
|
+
isStar: true,
|
8620
|
+
duration: 2.596,
|
8621
|
+
classAverageTime: 2.596,
|
8622
|
+
topDuration: 2.596,
|
8623
|
+
answerResponseSignal: 1,
|
8624
|
+
isCorrect: false,
|
8625
|
+
answerTime: "2024-03-13T04:29:10.648+00:00",
|
8626
|
+
article: 2,
|
8627
|
+
category: {
|
8628
|
+
parentCategoryId: null,
|
8629
|
+
name: "123458868",
|
8630
|
+
path: "",
|
8631
|
+
numberOfQuestions: 0,
|
8632
|
+
numberOfChildren: 0,
|
8633
|
+
id: 1008
|
8634
8634
|
},
|
8635
|
-
|
8636
|
-
|
8635
|
+
overallCorrectRate: 78.24,
|
8636
|
+
questionOrder: 7
|
8637
8637
|
}, {
|
8638
|
-
|
8639
|
-
|
8640
|
-
|
8641
|
-
|
8642
|
-
|
8643
|
-
|
8644
|
-
|
8645
|
-
|
8646
|
-
|
8647
|
-
|
8648
|
-
|
8649
|
-
|
8650
|
-
|
8651
|
-
|
8652
|
-
|
8653
|
-
|
8654
|
-
|
8655
|
-
|
8638
|
+
id: 8152,
|
8639
|
+
selectedAnswers: "5",
|
8640
|
+
correctAnswers: "4",
|
8641
|
+
isStar: false,
|
8642
|
+
duration: 0.899,
|
8643
|
+
classAverageTime: 0.899,
|
8644
|
+
topDuration: 0.899,
|
8645
|
+
answerResponseSignal: 1,
|
8646
|
+
isCorrect: false,
|
8647
|
+
answerTime: "2024-03-13T04:29:12.864+00:00",
|
8648
|
+
article: 2,
|
8649
|
+
category: {
|
8650
|
+
parentCategoryId: null,
|
8651
|
+
name: "123458868",
|
8652
|
+
path: "",
|
8653
|
+
numberOfQuestions: 0,
|
8654
|
+
numberOfChildren: 0,
|
8655
|
+
id: 1008
|
8656
8656
|
},
|
8657
|
-
|
8658
|
-
|
8657
|
+
overallCorrectRate: 90,
|
8658
|
+
questionOrder: 8
|
8659
8659
|
}, {
|
8660
|
-
|
8661
|
-
|
8662
|
-
|
8663
|
-
|
8664
|
-
|
8665
|
-
|
8666
|
-
|
8667
|
-
|
8668
|
-
|
8669
|
-
|
8670
|
-
|
8671
|
-
|
8672
|
-
|
8673
|
-
|
8674
|
-
|
8675
|
-
|
8676
|
-
|
8677
|
-
|
8660
|
+
id: 8153,
|
8661
|
+
selectedAnswers: "2",
|
8662
|
+
correctAnswers: "2",
|
8663
|
+
isStar: true,
|
8664
|
+
duration: 70.496,
|
8665
|
+
classAverageTime: 140.496,
|
8666
|
+
topDuration: 20.496,
|
8667
|
+
answerResponseSignal: 0,
|
8668
|
+
isCorrect: true,
|
8669
|
+
answerTime: "2024-03-13T04:29:14.36+00:00",
|
8670
|
+
article: 2,
|
8671
|
+
category: {
|
8672
|
+
parentCategoryId: null,
|
8673
|
+
name: "123458868",
|
8674
|
+
path: "",
|
8675
|
+
numberOfQuestions: 0,
|
8676
|
+
numberOfChildren: 0,
|
8677
|
+
id: 1008
|
8678
8678
|
},
|
8679
|
-
|
8680
|
-
|
8679
|
+
overallCorrectRate: 100,
|
8680
|
+
questionOrder: 9
|
8681
8681
|
}, {
|
8682
|
-
|
8683
|
-
|
8684
|
-
|
8685
|
-
|
8686
|
-
|
8687
|
-
|
8688
|
-
|
8689
|
-
|
8690
|
-
|
8691
|
-
|
8692
|
-
|
8693
|
-
|
8694
|
-
|
8695
|
-
|
8696
|
-
|
8697
|
-
|
8698
|
-
|
8699
|
-
|
8682
|
+
id: 8154,
|
8683
|
+
selectedAnswers: "",
|
8684
|
+
correctAnswers: "5",
|
8685
|
+
isStar: false,
|
8686
|
+
duration: 0,
|
8687
|
+
classAverageTime: 0,
|
8688
|
+
topDuration: null,
|
8689
|
+
answerResponseSignal: null,
|
8690
|
+
isCorrect: false,
|
8691
|
+
answerTime: "0001-01-01T00:00:00+00:00",
|
8692
|
+
article: 2,
|
8693
|
+
category: {
|
8694
|
+
parentCategoryId: null,
|
8695
|
+
name: "123458868",
|
8696
|
+
path: "",
|
8697
|
+
numberOfQuestions: 0,
|
8698
|
+
numberOfChildren: 0,
|
8699
|
+
id: 1008
|
8700
8700
|
},
|
8701
|
-
|
8702
|
-
|
8701
|
+
overallCorrectRate: 75,
|
8702
|
+
questionOrder: 10
|
8703
8703
|
}, {
|
8704
|
-
|
8705
|
-
|
8706
|
-
|
8707
|
-
|
8708
|
-
|
8709
|
-
|
8710
|
-
|
8711
|
-
|
8712
|
-
|
8713
|
-
|
8714
|
-
|
8715
|
-
|
8716
|
-
|
8717
|
-
|
8718
|
-
|
8719
|
-
|
8720
|
-
|
8721
|
-
|
8704
|
+
id: 8155,
|
8705
|
+
selectedAnswers: "2",
|
8706
|
+
correctAnswers: "2",
|
8707
|
+
isStar: false,
|
8708
|
+
duration: 1.317,
|
8709
|
+
classAverageTime: 1.317,
|
8710
|
+
topDuration: 1.317,
|
8711
|
+
answerResponseSignal: 1,
|
8712
|
+
isCorrect: true,
|
8713
|
+
answerTime: "2024-03-13T04:29:11.965+00:00",
|
8714
|
+
article: 3,
|
8715
|
+
category: {
|
8716
|
+
parentCategoryId: null,
|
8717
|
+
name: "The first category a",
|
8718
|
+
path: "",
|
8719
|
+
numberOfQuestions: 0,
|
8720
|
+
numberOfChildren: 0,
|
8721
|
+
id: 4
|
8722
8722
|
},
|
8723
|
-
|
8724
|
-
|
8723
|
+
overallCorrectRate: 100,
|
8724
|
+
questionOrder: 11
|
8725
8725
|
}, {
|
8726
|
-
|
8727
|
-
|
8728
|
-
|
8729
|
-
|
8730
|
-
|
8731
|
-
|
8732
|
-
|
8733
|
-
|
8734
|
-
|
8735
|
-
|
8736
|
-
|
8737
|
-
|
8738
|
-
|
8739
|
-
|
8740
|
-
|
8741
|
-
|
8742
|
-
|
8743
|
-
|
8726
|
+
id: 8156,
|
8727
|
+
selectedAnswers: "2",
|
8728
|
+
correctAnswers: "4",
|
8729
|
+
isStar: true,
|
8730
|
+
duration: 1.593,
|
8731
|
+
classAverageTime: 1.593,
|
8732
|
+
topDuration: 1.593,
|
8733
|
+
answerResponseSignal: 1,
|
8734
|
+
isCorrect: false,
|
8735
|
+
answerTime: "2024-03-13T04:29:20.734+00:00",
|
8736
|
+
article: 3,
|
8737
|
+
category: {
|
8738
|
+
parentCategoryId: null,
|
8739
|
+
name: "The first category a",
|
8740
|
+
path: "",
|
8741
|
+
numberOfQuestions: 0,
|
8742
|
+
numberOfChildren: 0,
|
8743
|
+
id: 4
|
8744
8744
|
},
|
8745
|
-
|
8746
|
-
|
8745
|
+
overallCorrectRate: 82,
|
8746
|
+
questionOrder: 12
|
8747
8747
|
}, {
|
8748
|
-
|
8749
|
-
|
8750
|
-
|
8751
|
-
|
8752
|
-
|
8753
|
-
|
8754
|
-
|
8755
|
-
|
8756
|
-
|
8757
|
-
|
8758
|
-
|
8759
|
-
|
8760
|
-
|
8761
|
-
|
8762
|
-
|
8763
|
-
|
8764
|
-
|
8765
|
-
|
8748
|
+
id: 8157,
|
8749
|
+
selectedAnswers: "2",
|
8750
|
+
correctAnswers: "5",
|
8751
|
+
isStar: true,
|
8752
|
+
duration: 1.204,
|
8753
|
+
classAverageTime: 1.204,
|
8754
|
+
topDuration: 1.204,
|
8755
|
+
answerResponseSignal: 1,
|
8756
|
+
isCorrect: false,
|
8757
|
+
answerTime: "2024-03-13T04:29:18.164+00:00",
|
8758
|
+
article: 3,
|
8759
|
+
category: {
|
8760
|
+
parentCategoryId: null,
|
8761
|
+
name: "The first category a",
|
8762
|
+
path: "",
|
8763
|
+
numberOfQuestions: 0,
|
8764
|
+
numberOfChildren: 0,
|
8765
|
+
id: 4
|
8766
8766
|
},
|
8767
|
-
|
8768
|
-
|
8767
|
+
overallCorrectRate: 67,
|
8768
|
+
questionOrder: 13
|
8769
8769
|
}, {
|
8770
|
-
|
8771
|
-
|
8772
|
-
|
8773
|
-
|
8774
|
-
|
8775
|
-
|
8776
|
-
|
8777
|
-
|
8778
|
-
|
8779
|
-
|
8780
|
-
|
8781
|
-
|
8782
|
-
|
8783
|
-
|
8784
|
-
|
8785
|
-
|
8786
|
-
|
8787
|
-
|
8770
|
+
id: 8158,
|
8771
|
+
selectedAnswers: "4",
|
8772
|
+
correctAnswers: "3",
|
8773
|
+
isStar: true,
|
8774
|
+
duration: 2.6,
|
8775
|
+
classAverageTime: 2.6,
|
8776
|
+
topDuration: 2.6,
|
8777
|
+
answerResponseSignal: 1,
|
8778
|
+
isCorrect: false,
|
8779
|
+
answerTime: "2024-03-13T04:29:16.96+00:00",
|
8780
|
+
article: 3,
|
8781
|
+
category: {
|
8782
|
+
parentCategoryId: null,
|
8783
|
+
name: "The first category a",
|
8784
|
+
path: "",
|
8785
|
+
numberOfQuestions: 0,
|
8786
|
+
numberOfChildren: 0,
|
8787
|
+
id: 4
|
8788
8788
|
},
|
8789
|
-
|
8790
|
-
|
8789
|
+
overallCorrectRate: 45,
|
8790
|
+
questionOrder: 14
|
8791
8791
|
}, {
|
8792
|
-
|
8793
|
-
|
8794
|
-
|
8795
|
-
|
8796
|
-
|
8797
|
-
|
8798
|
-
|
8799
|
-
|
8800
|
-
|
8801
|
-
|
8802
|
-
|
8803
|
-
|
8804
|
-
|
8805
|
-
|
8806
|
-
|
8807
|
-
|
8808
|
-
|
8809
|
-
|
8792
|
+
id: 8159,
|
8793
|
+
selectedAnswers: "3",
|
8794
|
+
correctAnswers: "3",
|
8795
|
+
isStar: true,
|
8796
|
+
duration: 0.977,
|
8797
|
+
classAverageTime: 0.977,
|
8798
|
+
topDuration: 0.977,
|
8799
|
+
answerResponseSignal: 1,
|
8800
|
+
isCorrect: true,
|
8801
|
+
answerTime: "2024-03-13T04:29:19.141+00:00",
|
8802
|
+
article: 3,
|
8803
|
+
category: {
|
8804
|
+
parentCategoryId: null,
|
8805
|
+
name: "The first category a",
|
8806
|
+
path: "",
|
8807
|
+
numberOfQuestions: 0,
|
8808
|
+
numberOfChildren: 0,
|
8809
|
+
id: 4
|
8810
8810
|
},
|
8811
|
-
|
8812
|
-
|
8811
|
+
overallCorrectRate: 100,
|
8812
|
+
questionOrder: 15
|
8813
8813
|
}],
|
8814
|
-
|
8815
|
-
|
8816
|
-
|
8817
|
-
|
8814
|
+
score: 10,
|
8815
|
+
placeOrder: 1,
|
8816
|
+
totalStudent: 1,
|
8817
|
+
totalTime: 30.987000000000002
|
8818
8818
|
};
|
8819
8819
|
var LONGTIME_SPEND_QUESTIONS = [{
|
8820
|
-
|
8821
|
-
|
8822
|
-
|
8823
|
-
|
8820
|
+
id: 8144,
|
8821
|
+
questionOrder: 0,
|
8822
|
+
duration: 320.939,
|
8823
|
+
topDuration: 145.32
|
8824
8824
|
}, {
|
8825
|
-
|
8826
|
-
|
8827
|
-
|
8828
|
-
|
8825
|
+
id: 8153,
|
8826
|
+
questionOrder: 9,
|
8827
|
+
duration: 70.496,
|
8828
|
+
topDuration: 30.22
|
8829
8829
|
}];
|
8830
8830
|
var EFFECT_SIZE_QUESTIONS = [{
|
8831
|
-
|
8832
|
-
|
8833
|
-
|
8834
|
-
|
8835
|
-
|
8836
|
-
|
8837
|
-
|
8838
|
-
|
8839
|
-
|
8831
|
+
id: 8144,
|
8832
|
+
questionOrder: 0,
|
8833
|
+
article: 1,
|
8834
|
+
isCorrect: false,
|
8835
|
+
selectedAnswers: "1",
|
8836
|
+
mostSelectedAnswers: "1",
|
8837
|
+
correctAnswers: "2",
|
8838
|
+
answerResponseSignal: 1,
|
8839
|
+
problemCategories: [3]
|
8840
8840
|
}, {
|
8841
|
-
|
8842
|
-
|
8843
|
-
|
8844
|
-
|
8845
|
-
|
8846
|
-
|
8847
|
-
|
8848
|
-
|
8849
|
-
|
8841
|
+
id: 8145,
|
8842
|
+
questionOrder: 1,
|
8843
|
+
article: 1,
|
8844
|
+
isCorrect: false,
|
8845
|
+
selectedAnswers: "2",
|
8846
|
+
mostSelectedAnswers: "2",
|
8847
|
+
correctAnswers: "3",
|
8848
|
+
answerResponseSignal: 1,
|
8849
|
+
problemCategories: [4]
|
8850
8850
|
}, {
|
8851
|
-
|
8852
|
-
|
8853
|
-
|
8854
|
-
|
8855
|
-
|
8856
|
-
|
8857
|
-
|
8858
|
-
|
8859
|
-
|
8851
|
+
id: 8146,
|
8852
|
+
questionOrder: 2,
|
8853
|
+
article: 1,
|
8854
|
+
isCorrect: false,
|
8855
|
+
selectedAnswers: "1",
|
8856
|
+
mostSelectedAnswers: "1",
|
8857
|
+
correctAnswers: "2",
|
8858
|
+
answerResponseSignal: 1,
|
8859
|
+
problemCategories: [3]
|
8860
8860
|
}, {
|
8861
|
-
|
8862
|
-
|
8863
|
-
|
8864
|
-
|
8865
|
-
|
8866
|
-
|
8867
|
-
|
8868
|
-
|
8869
|
-
|
8861
|
+
id: 8147,
|
8862
|
+
questionOrder: 3,
|
8863
|
+
article: 1,
|
8864
|
+
isCorrect: true,
|
8865
|
+
selectedAnswers: "1",
|
8866
|
+
mostSelectedAnswers: "1",
|
8867
|
+
correctAnswers: "1",
|
8868
|
+
answerResponseSignal: 1,
|
8869
|
+
problemCategories: [1]
|
8870
8870
|
}, {
|
8871
|
-
|
8872
|
-
|
8873
|
-
|
8874
|
-
|
8875
|
-
|
8876
|
-
|
8877
|
-
|
8878
|
-
|
8879
|
-
|
8871
|
+
id: 8148,
|
8872
|
+
questionOrder: 4,
|
8873
|
+
article: 1,
|
8874
|
+
isCorrect: false,
|
8875
|
+
selectedAnswers: "3",
|
8876
|
+
mostSelectedAnswers: "3",
|
8877
|
+
correctAnswers: "4",
|
8878
|
+
answerResponseSignal: 1,
|
8879
|
+
problemCategories: [4]
|
8880
8880
|
}, {
|
8881
|
-
|
8882
|
-
|
8883
|
-
|
8884
|
-
|
8885
|
-
|
8886
|
-
|
8887
|
-
|
8888
|
-
|
8889
|
-
|
8881
|
+
id: 8149,
|
8882
|
+
questionOrder: 5,
|
8883
|
+
article: 2,
|
8884
|
+
isCorrect: true,
|
8885
|
+
selectedAnswers: "2",
|
8886
|
+
mostSelectedAnswers: "2",
|
8887
|
+
correctAnswers: "2",
|
8888
|
+
answerResponseSignal: 1,
|
8889
|
+
problemCategories: [1]
|
8890
8890
|
}, {
|
8891
|
-
|
8892
|
-
|
8893
|
-
|
8894
|
-
|
8895
|
-
|
8896
|
-
|
8897
|
-
|
8898
|
-
|
8899
|
-
|
8891
|
+
id: 8150,
|
8892
|
+
questionOrder: 6,
|
8893
|
+
article: 2,
|
8894
|
+
isCorrect: false,
|
8895
|
+
selectedAnswers: "",
|
8896
|
+
mostSelectedAnswers: "",
|
8897
|
+
correctAnswers: "3",
|
8898
|
+
answerResponseSignal: null,
|
8899
|
+
problemCategories: []
|
8900
8900
|
}, {
|
8901
|
-
|
8902
|
-
|
8903
|
-
|
8904
|
-
|
8905
|
-
|
8906
|
-
|
8907
|
-
|
8908
|
-
|
8909
|
-
|
8901
|
+
id: 8151,
|
8902
|
+
questionOrder: 7,
|
8903
|
+
article: 2,
|
8904
|
+
isCorrect: false,
|
8905
|
+
selectedAnswers: "3",
|
8906
|
+
mostSelectedAnswers: "3",
|
8907
|
+
correctAnswers: "2",
|
8908
|
+
answerResponseSignal: 1,
|
8909
|
+
problemCategories: [2, 3]
|
8910
8910
|
}, {
|
8911
|
-
|
8912
|
-
|
8913
|
-
|
8914
|
-
|
8915
|
-
|
8916
|
-
|
8917
|
-
|
8918
|
-
|
8919
|
-
|
8911
|
+
id: 8152,
|
8912
|
+
questionOrder: 8,
|
8913
|
+
article: 2,
|
8914
|
+
isCorrect: false,
|
8915
|
+
selectedAnswers: "5",
|
8916
|
+
mostSelectedAnswers: "5",
|
8917
|
+
correctAnswers: "4",
|
8918
|
+
answerResponseSignal: 1,
|
8919
|
+
problemCategories: [4]
|
8920
8920
|
}, {
|
8921
|
-
|
8922
|
-
|
8923
|
-
|
8924
|
-
|
8925
|
-
|
8926
|
-
|
8927
|
-
|
8928
|
-
|
8929
|
-
|
8921
|
+
id: 8153,
|
8922
|
+
questionOrder: 9,
|
8923
|
+
article: 2,
|
8924
|
+
isCorrect: true,
|
8925
|
+
selectedAnswers: "2",
|
8926
|
+
mostSelectedAnswers: "2",
|
8927
|
+
correctAnswers: "2",
|
8928
|
+
answerResponseSignal: 1,
|
8929
|
+
problemCategories: [1]
|
8930
8930
|
}, {
|
8931
|
-
|
8932
|
-
|
8933
|
-
|
8934
|
-
|
8935
|
-
|
8936
|
-
|
8937
|
-
|
8938
|
-
|
8939
|
-
|
8931
|
+
id: 8154,
|
8932
|
+
questionOrder: 10,
|
8933
|
+
article: 2,
|
8934
|
+
isCorrect: false,
|
8935
|
+
selectedAnswers: "",
|
8936
|
+
mostSelectedAnswers: "",
|
8937
|
+
correctAnswers: "5",
|
8938
|
+
answerResponseSignal: null,
|
8939
|
+
problemCategories: []
|
8940
8940
|
}, {
|
8941
|
-
|
8942
|
-
|
8943
|
-
|
8944
|
-
|
8945
|
-
|
8946
|
-
|
8947
|
-
|
8948
|
-
|
8949
|
-
|
8941
|
+
id: 8155,
|
8942
|
+
questionOrder: 11,
|
8943
|
+
article: 3,
|
8944
|
+
isCorrect: true,
|
8945
|
+
selectedAnswers: "2",
|
8946
|
+
mostSelectedAnswers: "2",
|
8947
|
+
correctAnswers: "2",
|
8948
|
+
answerResponseSignal: 1,
|
8949
|
+
problemCategories: [1]
|
8950
8950
|
}, {
|
8951
|
-
|
8952
|
-
|
8953
|
-
|
8954
|
-
|
8955
|
-
|
8956
|
-
|
8957
|
-
|
8958
|
-
|
8959
|
-
|
8951
|
+
id: 8156,
|
8952
|
+
questionOrder: 12,
|
8953
|
+
article: 3,
|
8954
|
+
isCorrect: false,
|
8955
|
+
selectedAnswers: "2",
|
8956
|
+
mostSelectedAnswers: "2",
|
8957
|
+
correctAnswers: "4",
|
8958
|
+
answerResponseSignal: 1,
|
8959
|
+
problemCategories: [4]
|
8960
8960
|
}, {
|
8961
|
-
|
8962
|
-
|
8963
|
-
|
8964
|
-
|
8965
|
-
|
8966
|
-
|
8967
|
-
|
8968
|
-
|
8969
|
-
|
8961
|
+
id: 8157,
|
8962
|
+
questionOrder: 13,
|
8963
|
+
article: 3,
|
8964
|
+
isCorrect: false,
|
8965
|
+
selectedAnswers: "2",
|
8966
|
+
mostSelectedAnswers: "2",
|
8967
|
+
correctAnswers: "5",
|
8968
|
+
answerResponseSignal: 1,
|
8969
|
+
problemCategories: [4]
|
8970
8970
|
}, {
|
8971
|
-
|
8972
|
-
|
8973
|
-
|
8974
|
-
|
8975
|
-
|
8976
|
-
|
8977
|
-
|
8978
|
-
|
8979
|
-
|
8971
|
+
id: 8158,
|
8972
|
+
questionOrder: 14,
|
8973
|
+
article: 3,
|
8974
|
+
isCorrect: false,
|
8975
|
+
selectedAnswers: "4",
|
8976
|
+
mostSelectedAnswers: "4",
|
8977
|
+
correctAnswers: "3",
|
8978
|
+
answerResponseSignal: 1,
|
8979
|
+
problemCategories: [4]
|
8980
8980
|
}, {
|
8981
|
-
|
8982
|
-
|
8983
|
-
|
8984
|
-
|
8985
|
-
|
8986
|
-
|
8987
|
-
|
8988
|
-
|
8989
|
-
|
8981
|
+
id: 8159,
|
8982
|
+
questionOrder: 15,
|
8983
|
+
article: 3,
|
8984
|
+
isCorrect: true,
|
8985
|
+
selectedAnswers: "3",
|
8986
|
+
mostSelectedAnswers: "3",
|
8987
|
+
correctAnswers: "3",
|
8988
|
+
answerResponseSignal: 1,
|
8989
|
+
problemCategories: [1]
|
8990
8990
|
}];
|
8991
8991
|
var TIMELY_ORDER_QUESTIONS = [{
|
8992
|
-
|
8993
|
-
|
8994
|
-
|
8995
|
-
|
8996
|
-
|
8997
|
-
|
8998
|
-
|
8999
|
-
|
8992
|
+
categoryId: 7,
|
8993
|
+
categoryName: "New category",
|
8994
|
+
article: 1,
|
8995
|
+
questions: [{
|
8996
|
+
questionId: 8144,
|
8997
|
+
questionOrder: 0,
|
8998
|
+
answerOrder: 1,
|
8999
|
+
topAnswerOrder: 2
|
9000
9000
|
}, {
|
9001
|
-
|
9002
|
-
|
9003
|
-
|
9004
|
-
|
9001
|
+
questionId: 8145,
|
9002
|
+
questionOrder: 1,
|
9003
|
+
answerOrder: 2,
|
9004
|
+
topAnswerOrder: 1
|
9005
9005
|
}, {
|
9006
|
-
|
9007
|
-
|
9008
|
-
|
9009
|
-
|
9006
|
+
questionId: 8146,
|
9007
|
+
questionOrder: 2,
|
9008
|
+
answerOrder: 3,
|
9009
|
+
topAnswerOrder: 4
|
9010
9010
|
}, {
|
9011
|
-
|
9012
|
-
|
9013
|
-
|
9014
|
-
|
9011
|
+
questionId: 8147,
|
9012
|
+
questionOrder: 3,
|
9013
|
+
answerOrder: 4,
|
9014
|
+
topAnswerOrder: 5
|
9015
9015
|
}, {
|
9016
|
-
|
9017
|
-
|
9018
|
-
|
9019
|
-
|
9016
|
+
questionId: 8148,
|
9017
|
+
questionOrder: 4,
|
9018
|
+
answerOrder: 5,
|
9019
|
+
topAnswerOrder: 3
|
9020
9020
|
}]
|
9021
9021
|
}, {
|
9022
|
-
|
9023
|
-
|
9024
|
-
|
9025
|
-
|
9026
|
-
|
9027
|
-
|
9028
|
-
|
9029
|
-
|
9022
|
+
categoryId: 1008,
|
9023
|
+
categoryName: "123458868",
|
9024
|
+
article: 2,
|
9025
|
+
questions: [{
|
9026
|
+
questionId: 8149,
|
9027
|
+
questionOrder: 5,
|
9028
|
+
answerOrder: 1,
|
9029
|
+
topAnswerOrder: 5
|
9030
9030
|
}, {
|
9031
|
-
|
9032
|
-
|
9033
|
-
|
9034
|
-
|
9031
|
+
questionId: 8150,
|
9032
|
+
questionOrder: 6,
|
9033
|
+
answerOrder: null,
|
9034
|
+
topAnswerOrder: 2
|
9035
9035
|
}, {
|
9036
|
-
|
9037
|
-
|
9038
|
-
|
9039
|
-
|
9036
|
+
questionId: 8151,
|
9037
|
+
questionOrder: 7,
|
9038
|
+
answerOrder: 2,
|
9039
|
+
topAnswerOrder: 3
|
9040
9040
|
}, {
|
9041
|
-
|
9042
|
-
|
9043
|
-
|
9044
|
-
|
9041
|
+
questionId: 8152,
|
9042
|
+
questionOrder: 8,
|
9043
|
+
answerOrder: 3,
|
9044
|
+
topAnswerOrder: 4
|
9045
9045
|
}, {
|
9046
|
-
|
9047
|
-
|
9048
|
-
|
9049
|
-
|
9046
|
+
questionId: 8153,
|
9047
|
+
questionOrder: 9,
|
9048
|
+
answerOrder: 4,
|
9049
|
+
topAnswerOrder: 1
|
9050
9050
|
}, {
|
9051
|
-
|
9052
|
-
|
9053
|
-
|
9054
|
-
|
9051
|
+
questionId: 8154,
|
9052
|
+
questionOrder: 10,
|
9053
|
+
answerOrder: null,
|
9054
|
+
topAnswerOrder: 6
|
9055
9055
|
}]
|
9056
9056
|
}, {
|
9057
|
-
|
9058
|
-
|
9059
|
-
|
9060
|
-
|
9061
|
-
|
9062
|
-
|
9063
|
-
|
9064
|
-
|
9057
|
+
categoryId: 4,
|
9058
|
+
categoryName: "The first category a",
|
9059
|
+
article: 3,
|
9060
|
+
questions: [{
|
9061
|
+
questionId: 8155,
|
9062
|
+
questionOrder: 11,
|
9063
|
+
answerOrder: 1,
|
9064
|
+
topAnswerOrder: 3
|
9065
9065
|
}, {
|
9066
|
-
|
9067
|
-
|
9068
|
-
|
9069
|
-
|
9066
|
+
questionId: 8156,
|
9067
|
+
questionOrder: 12,
|
9068
|
+
answerOrder: 5,
|
9069
|
+
topAnswerOrder: 2
|
9070
9070
|
}, {
|
9071
|
-
|
9072
|
-
|
9073
|
-
|
9074
|
-
|
9071
|
+
questionId: 8157,
|
9072
|
+
questionOrder: 13,
|
9073
|
+
answerOrder: 3,
|
9074
|
+
topAnswerOrder: 1
|
9075
9075
|
}, {
|
9076
|
-
|
9077
|
-
|
9078
|
-
|
9079
|
-
|
9076
|
+
questionId: 8158,
|
9077
|
+
questionOrder: 14,
|
9078
|
+
answerOrder: 2,
|
9079
|
+
topAnswerOrder: 4
|
9080
9080
|
}, {
|
9081
|
-
|
9082
|
-
|
9083
|
-
|
9084
|
-
|
9081
|
+
questionId: 8159,
|
9082
|
+
questionOrder: 15,
|
9083
|
+
answerOrder: 4,
|
9084
|
+
topAnswerOrder: 5
|
9085
9085
|
}]
|
9086
9086
|
}];
|
9087
9087
|
var CATEGORY_RESPONSES = [{
|
9088
|
-
|
9089
|
-
|
9090
|
-
|
9091
|
-
|
9092
|
-
|
9093
|
-
|
9088
|
+
id: 7,
|
9089
|
+
name: "New category",
|
9090
|
+
totalQuestions: 5,
|
9091
|
+
totalCorrectQuestions: 1,
|
9092
|
+
totalAnsweredQuestions: 5,
|
9093
|
+
percentageAmongStudents: 17
|
9094
9094
|
}, {
|
9095
|
-
|
9096
|
-
|
9097
|
-
|
9098
|
-
|
9099
|
-
|
9100
|
-
|
9095
|
+
id: 1008,
|
9096
|
+
name: "123458868",
|
9097
|
+
totalQuestions: 6,
|
9098
|
+
totalCorrectQuestions: 2,
|
9099
|
+
totalAnsweredQuestions: 4,
|
9100
|
+
percentageAmongStudents: 48
|
9101
9101
|
}, {
|
9102
|
-
|
9103
|
-
|
9104
|
-
|
9105
|
-
|
9106
|
-
|
9107
|
-
|
9102
|
+
id: 4,
|
9103
|
+
name: "The first category a",
|
9104
|
+
totalQuestions: 5,
|
9105
|
+
totalCorrectQuestions: 2,
|
9106
|
+
totalAnsweredQuestions: 5,
|
9107
|
+
percentageAmongStudents: 40
|
9108
9108
|
}];
|
9109
|
+
var DEFAULT_LINE_CHART_OPTIONS = {
|
9110
|
+
chart: {
|
9111
|
+
type: "line",
|
9112
|
+
toolbar: {
|
9113
|
+
show: false
|
9114
|
+
},
|
9115
|
+
zoom: {
|
9116
|
+
enabled: false
|
9117
|
+
}
|
9118
|
+
},
|
9119
|
+
tooltip: {
|
9120
|
+
enabled: true,
|
9121
|
+
hideEmptySeries: true
|
9122
|
+
},
|
9123
|
+
legend: {
|
9124
|
+
show: true,
|
9125
|
+
fontSize: "12px",
|
9126
|
+
fontWeight: 600,
|
9127
|
+
markers: {
|
9128
|
+
width: 16,
|
9129
|
+
height: 1
|
9130
|
+
},
|
9131
|
+
labels: {
|
9132
|
+
colors: "#414E62"
|
9133
|
+
},
|
9134
|
+
itemMargin: {
|
9135
|
+
vertical: 16
|
9136
|
+
}
|
9137
|
+
},
|
9138
|
+
dataLabels: {
|
9139
|
+
enabled: false
|
9140
|
+
},
|
9141
|
+
xaxis: {
|
9142
|
+
categories: [],
|
9143
|
+
axisBorder: {
|
9144
|
+
show: true,
|
9145
|
+
color: "#E4E7EC"
|
9146
|
+
},
|
9147
|
+
labels: {
|
9148
|
+
style: {
|
9149
|
+
fontSize: "10px"
|
9150
|
+
}
|
9151
|
+
}
|
9152
|
+
},
|
9153
|
+
grid: {
|
9154
|
+
row: {
|
9155
|
+
colors: ["#FFFFFF"]
|
9156
|
+
},
|
9157
|
+
borderColor: "#E4E7EC",
|
9158
|
+
xaxis: {
|
9159
|
+
lines: {
|
9160
|
+
show: true
|
9161
|
+
}
|
9162
|
+
}
|
9163
|
+
},
|
9164
|
+
yaxis: {
|
9165
|
+
stepSize: 1,
|
9166
|
+
min: 0,
|
9167
|
+
axisBorder: {
|
9168
|
+
show: true,
|
9169
|
+
color: "#E4E7EC"
|
9170
|
+
},
|
9171
|
+
labels: {
|
9172
|
+
style: {
|
9173
|
+
fontSize: "10px"
|
9174
|
+
}
|
9175
|
+
}
|
9176
|
+
}
|
9177
|
+
};
|
9178
|
+
var defaultSeries = function defaultSeries(t) {
|
9179
|
+
return [{
|
9180
|
+
name: t("my_problem_solving_order"),
|
9181
|
+
data: []
|
9182
|
+
}, {
|
9183
|
+
name: t("top_rankings_problem_solving_order"),
|
9184
|
+
data: []
|
9185
|
+
}];
|
9186
|
+
};
|
9109
9187
|
|
9110
|
-
var useExamResult = function useExamResult(searchParam, navigate, examSessionId, studentId, code) {
|
9188
|
+
var useExamResult = function useExamResult(searchParam, navigate, examSessionId, studentId, code, handleChangeTab) {
|
9189
|
+
var _allChartOptions$data, _allSeries$dataChartI;
|
9111
9190
|
if (examSessionId === void 0) {
|
9112
9191
|
examSessionId = 0;
|
9113
9192
|
}
|
@@ -9139,8 +9218,8 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9139
9218
|
longTimeSpend = _useState3[0],
|
9140
9219
|
setLongTimeSpend = _useState3[1];
|
9141
9220
|
var _useState4 = useState([]),
|
9142
|
-
|
9143
|
-
|
9221
|
+
timelyOrderQuestions = _useState4[0],
|
9222
|
+
setTimelyOrderQuestions = _useState4[1];
|
9144
9223
|
var _useState5 = useState([]),
|
9145
9224
|
categoryResponses = _useState5[0],
|
9146
9225
|
setCategoryResponses = _useState5[1];
|
@@ -9166,10 +9245,11 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9166
9245
|
var _temp = _catch(function () {
|
9167
9246
|
return Promise.resolve(Promise.all([getResults(examCode), getResultsLongTimeSpend(examCode), getResultsEffectSize(examCode), getResultsTimeOrderQuestion(examCode), getResultsCategories(examCode)])).then(function (result) {
|
9168
9247
|
var _result$0$data, _result$1$data, _result$2$data, _result$3$data, _result$4$data;
|
9248
|
+
handleChangeTab(0);
|
9169
9249
|
setResultDatas((_result$0$data = result[0].data) === null || _result$0$data === void 0 ? void 0 : _result$0$data.data);
|
9170
9250
|
setLongTimeSpend((_result$1$data = result[1].data) === null || _result$1$data === void 0 ? void 0 : _result$1$data.data);
|
9171
9251
|
setEffectSize((_result$2$data = result[2].data) === null || _result$2$data === void 0 ? void 0 : _result$2$data.data);
|
9172
|
-
|
9252
|
+
setTimelyOrderQuestions((_result$3$data = result[3].data) === null || _result$3$data === void 0 ? void 0 : _result$3$data.data);
|
9173
9253
|
setCategoryResponses(((_result$4$data = result[4].data) === null || _result$4$data === void 0 ? void 0 : _result$4$data.data) || []);
|
9174
9254
|
});
|
9175
9255
|
}, function (error) {
|
@@ -9200,10 +9280,11 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9200
9280
|
var _temp5 = _catch(function () {
|
9201
9281
|
return Promise.resolve(Promise.all([getResultsTeacher(examSessionId, studentId), getResultsLongTimeSpendTeacher(examSessionId, studentId), getResultsEffectSizeTeacher(examSessionId, studentId), getResultsTimeOrderQuestionTeacher(examSessionId, studentId), getResultsCategoriesTeacher(examSessionId, studentId)])).then(function (result) {
|
9202
9282
|
var _result$0$data2, _result$1$data2, _result$2$data2, _result$3$data2, _result$4$data2;
|
9283
|
+
handleChangeTab(0);
|
9203
9284
|
setResultDatas((_result$0$data2 = result[0].data) === null || _result$0$data2 === void 0 ? void 0 : _result$0$data2.data);
|
9204
9285
|
setLongTimeSpend((_result$1$data2 = result[1].data) === null || _result$1$data2 === void 0 ? void 0 : _result$1$data2.data);
|
9205
9286
|
setEffectSize((_result$2$data2 = result[2].data) === null || _result$2$data2 === void 0 ? void 0 : _result$2$data2.data);
|
9206
|
-
|
9287
|
+
setTimelyOrderQuestions((_result$3$data2 = result[3].data) === null || _result$3$data2 === void 0 ? void 0 : _result$3$data2.data);
|
9207
9288
|
setCategoryResponses(((_result$4$data2 = result[4].data) === null || _result$4$data2 === void 0 ? void 0 : _result$4$data2.data) || []);
|
9208
9289
|
});
|
9209
9290
|
}, function (error) {
|
@@ -9229,7 +9310,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9229
9310
|
setResultDatas(EXAM_RESULT);
|
9230
9311
|
setLongTimeSpend(LONGTIME_SPEND_QUESTIONS);
|
9231
9312
|
setEffectSize(EFFECT_SIZE_QUESTIONS);
|
9232
|
-
|
9313
|
+
setTimelyOrderQuestions(TIMELY_ORDER_QUESTIONS);
|
9233
9314
|
setCategoryResponses(CATEGORY_RESPONSES);
|
9234
9315
|
};
|
9235
9316
|
useEffect(function () {
|
@@ -9245,7 +9326,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9245
9326
|
}
|
9246
9327
|
};
|
9247
9328
|
var handleNextChart = function handleNextChart() {
|
9248
|
-
if (dataChartIndex <
|
9329
|
+
if (dataChartIndex < timelyOrderQuestions.length - 1) {
|
9249
9330
|
setDataChartIndex(dataChartIndex + 1);
|
9250
9331
|
}
|
9251
9332
|
};
|
@@ -9263,158 +9344,98 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9263
9344
|
seconds: totalTime % 60
|
9264
9345
|
});
|
9265
9346
|
}, [JSON.stringify(resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.questions), language]);
|
9266
|
-
var
|
9267
|
-
return {
|
9268
|
-
|
9269
|
-
|
9270
|
-
|
9271
|
-
|
9272
|
-
|
9273
|
-
|
9274
|
-
|
9275
|
-
|
9276
|
-
|
9277
|
-
|
9278
|
-
|
9279
|
-
|
9280
|
-
|
9281
|
-
|
9282
|
-
|
9283
|
-
|
9284
|
-
|
9285
|
-
|
9286
|
-
|
9347
|
+
var allChartOptions = useMemo(function () {
|
9348
|
+
return timelyOrderQuestions.map(function (timelyOrderQuestion) {
|
9349
|
+
return _extends({}, DEFAULT_LINE_CHART_OPTIONS, {
|
9350
|
+
tooltip: _extends({}, DEFAULT_LINE_CHART_OPTIONS.tooltip, {
|
9351
|
+
y: {
|
9352
|
+
formatter: function formatter(val, _ref) {
|
9353
|
+
var dataPointIndex = _ref.dataPointIndex;
|
9354
|
+
if (dataPointIndex > 0) {
|
9355
|
+
var _questions$length, _questions;
|
9356
|
+
var questions = timelyOrderQuestion.questions || null;
|
9357
|
+
var questionLength = (_questions$length = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length : 0;
|
9358
|
+
return val != null ? t("problem_number_question", {
|
9359
|
+
number: questions !== null ? (((_questions = questions[questionLength - val]) === null || _questions === void 0 ? void 0 : _questions.questionOrder) || 0) + 1 : val
|
9360
|
+
}) : t("no_data");
|
9361
|
+
}
|
9362
|
+
return null;
|
9363
|
+
}
|
9364
|
+
}
|
9365
|
+
}),
|
9366
|
+
xaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.xaxis, {
|
9367
|
+
categories: ["."].concat(Array.from({
|
9368
|
+
length: timelyOrderQuestion ? timelyOrderQuestion.questions.length : 1
|
9369
|
+
}, function (_, i) {
|
9370
|
+
return ORDER_NUMBERS[i + 1] ? t(ORDER_NUMBERS[i + 1]) : toNumberOrder(i + 1);
|
9371
|
+
}), ["."])
|
9372
|
+
}),
|
9373
|
+
yaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis, {
|
9374
|
+
tickAmount: timelyOrderQuestion.questions.length + 1,
|
9375
|
+
max: timelyOrderQuestion.questions.length + 1,
|
9376
|
+
labels: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis.labels, {
|
9377
|
+
formatter: function formatter(val) {
|
9378
|
+
var _questions$length2, _questions2;
|
9379
|
+
var questions = timelyOrderQuestion.questions || null;
|
9380
|
+
var questionLength = (_questions$length2 = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length2 : 0;
|
9287
9381
|
return val != null ? t("problem_number_question", {
|
9288
|
-
number: questions !== null ? (((
|
9382
|
+
number: questions !== null ? (((_questions2 = questions[questionLength - val]) === null || _questions2 === void 0 ? void 0 : _questions2.questionOrder) || 0) + 1 : val
|
9289
9383
|
}) : t("no_data");
|
9290
9384
|
}
|
9291
|
-
|
9292
|
-
|
9293
|
-
}
|
9294
|
-
},
|
9295
|
-
legend: {
|
9296
|
-
show: true,
|
9297
|
-
fontSize: "12px",
|
9298
|
-
fontWeight: 600,
|
9299
|
-
markers: {
|
9300
|
-
width: 16,
|
9301
|
-
height: 1
|
9302
|
-
},
|
9303
|
-
labels: {
|
9304
|
-
colors: "#414E62"
|
9305
|
-
},
|
9306
|
-
itemMargin: {
|
9307
|
-
vertical: 16
|
9308
|
-
}
|
9309
|
-
},
|
9310
|
-
dataLabels: {
|
9311
|
-
enabled: false
|
9312
|
-
},
|
9313
|
-
xaxis: {
|
9314
|
-
categories: ["."].concat(Array.from({
|
9315
|
-
length: timelyOrderQuestion[dataChartIndex] ? timelyOrderQuestion[dataChartIndex].questions.length : 1
|
9316
|
-
}, function (_, i) {
|
9317
|
-
return ORDER_NUMBERS[i + 1] ? t(ORDER_NUMBERS[i + 1]) : toNumberOrder(i + 1);
|
9318
|
-
}), ["."]),
|
9319
|
-
axisBorder: {
|
9320
|
-
show: true,
|
9321
|
-
color: "#E4E7EC"
|
9322
|
-
},
|
9323
|
-
labels: {
|
9324
|
-
style: {
|
9325
|
-
fontSize: "10px"
|
9326
|
-
}
|
9327
|
-
}
|
9328
|
-
},
|
9329
|
-
grid: {
|
9330
|
-
row: {
|
9331
|
-
colors: ["#FFFFFF"]
|
9332
|
-
},
|
9333
|
-
borderColor: "#E4E7EC",
|
9334
|
-
xaxis: {
|
9335
|
-
lines: {
|
9336
|
-
show: true
|
9337
|
-
}
|
9338
|
-
}
|
9339
|
-
},
|
9340
|
-
yaxis: {
|
9341
|
-
tickAmount: timelyOrderQuestion[dataChartIndex] ? timelyOrderQuestion[dataChartIndex].questions.length + 1 : 1,
|
9342
|
-
stepSize: 1,
|
9343
|
-
min: 0,
|
9344
|
-
max: timelyOrderQuestion[dataChartIndex] ? timelyOrderQuestion[dataChartIndex].questions.length + 1 : 1,
|
9345
|
-
axisBorder: {
|
9346
|
-
show: true,
|
9347
|
-
color: "#E4E7EC"
|
9348
|
-
},
|
9349
|
-
labels: {
|
9350
|
-
formatter: function formatter(val) {
|
9351
|
-
var _timelyOrderQuestion$2, _questions$length2, _questions2;
|
9352
|
-
var questions = ((_timelyOrderQuestion$2 = timelyOrderQuestion[dataChartIndex]) === null || _timelyOrderQuestion$2 === void 0 ? void 0 : _timelyOrderQuestion$2.questions) || null;
|
9353
|
-
var questionLength = (_questions$length2 = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length2 : 0;
|
9354
|
-
return val != null ? t("problem_number_question", {
|
9355
|
-
number: questions !== null ? (((_questions2 = questions[questionLength - val]) === null || _questions2 === void 0 ? void 0 : _questions2.questionOrder) || 0) + 1 : val
|
9356
|
-
}) : t("no_data");
|
9357
|
-
},
|
9358
|
-
style: {
|
9359
|
-
fontSize: "10px"
|
9360
|
-
}
|
9361
|
-
}
|
9362
|
-
}
|
9363
|
-
};
|
9364
|
-
}, [JSON.stringify(timelyOrderQuestion), dataChartIndex, language]);
|
9365
|
-
var series = useMemo(function () {
|
9366
|
-
if (!timelyOrderQuestion.length || timelyOrderQuestion.length < dataChartIndex + 1 || dataChartIndex < 0) return [{
|
9367
|
-
name: t("my_problem_solving_order"),
|
9368
|
-
data: []
|
9369
|
-
}, {
|
9370
|
-
name: t("top_rankings_problem_solving_order"),
|
9371
|
-
data: []
|
9372
|
-
}];
|
9373
|
-
var data = timelyOrderQuestion[dataChartIndex];
|
9374
|
-
var questionsData = data.questions.sort(function (a, b) {
|
9375
|
-
return a.questionOrder > b.questionOrder ? 1 : b.questionOrder > a.questionOrder ? -1 : 0;
|
9376
|
-
}).map(function (i, index) {
|
9377
|
-
return _extends({}, i, {
|
9378
|
-
questionOrder: index,
|
9379
|
-
answerOrder: i.answerOrder == null ? 0 : i.answerOrder,
|
9380
|
-
topAnswerOrder: i.topAnswerOrder == null ? 0 : i.topAnswerOrder
|
9385
|
+
})
|
9386
|
+
})
|
9381
9387
|
});
|
9382
9388
|
});
|
9383
|
-
|
9384
|
-
|
9385
|
-
|
9386
|
-
|
9387
|
-
|
9388
|
-
|
9389
|
-
|
9390
|
-
|
9391
|
-
|
9392
|
-
|
9393
|
-
|
9394
|
-
|
9395
|
-
|
9396
|
-
|
9397
|
-
|
9398
|
-
|
9399
|
-
|
9400
|
-
|
9401
|
-
|
9402
|
-
|
9403
|
-
|
9404
|
-
|
9405
|
-
|
9406
|
-
|
9407
|
-
|
9408
|
-
|
9389
|
+
}, [JSON.stringify(timelyOrderQuestions), language]);
|
9390
|
+
var allSeries = useMemo(function () {
|
9391
|
+
return timelyOrderQuestions.map(function (timelyOrderQuestion) {
|
9392
|
+
var questionsData = timelyOrderQuestion.questions.sort(function (a, b) {
|
9393
|
+
return a.questionOrder > b.questionOrder ? 1 : b.questionOrder > a.questionOrder ? -1 : 0;
|
9394
|
+
}).map(function (i, index) {
|
9395
|
+
return _extends({}, i, {
|
9396
|
+
questionOrder: index,
|
9397
|
+
answerOrder: i.answerOrder == null ? 0 : i.answerOrder,
|
9398
|
+
topAnswerOrder: i.topAnswerOrder == null ? 0 : i.topAnswerOrder
|
9399
|
+
});
|
9400
|
+
});
|
9401
|
+
var mySeriesData = [null].concat(_.sortBy(questionsData.filter(function (i) {
|
9402
|
+
return i.answerOrder !== 0;
|
9403
|
+
}), ["answerOrder", "questionOrder"]).map(function (item) {
|
9404
|
+
return timelyOrderQuestion.questions.length - item.questionOrder;
|
9405
|
+
}), questionsData.filter(function (i) {
|
9406
|
+
return i.answerOrder === 0;
|
9407
|
+
}).map(function () {
|
9408
|
+
return null;
|
9409
|
+
}), [null]);
|
9410
|
+
var topSeriesData = [null].concat(_.sortBy(questionsData.filter(function (i) {
|
9411
|
+
return i.topAnswerOrder !== 0;
|
9412
|
+
}), ["topAnswerOrder", "questionOrder"]).map(function (item) {
|
9413
|
+
return timelyOrderQuestion.questions.length - item.questionOrder;
|
9414
|
+
}), questionsData.filter(function (i) {
|
9415
|
+
return i.topAnswerOrder === 0;
|
9416
|
+
}).map(function () {
|
9417
|
+
return null;
|
9418
|
+
}), [null]);
|
9419
|
+
return [{
|
9420
|
+
name: t("my_problem_solving_order"),
|
9421
|
+
data: mySeriesData
|
9422
|
+
}, {
|
9423
|
+
name: t("top_rankings_problem_solving_order"),
|
9424
|
+
data: topSeriesData
|
9425
|
+
}];
|
9426
|
+
});
|
9427
|
+
}, [JSON.stringify(timelyOrderQuestions), language]);
|
9428
|
+
var chartOptions = (_allChartOptions$data = allChartOptions[dataChartIndex]) != null ? _allChartOptions$data : DEFAULT_LINE_CHART_OPTIONS;
|
9429
|
+
var series = (_allSeries$dataChartI = allSeries[dataChartIndex]) != null ? _allSeries$dataChartI : defaultSeries(t);
|
9409
9430
|
var handleExportPdf = function handleExportPdf() {
|
9410
9431
|
try {
|
9411
|
-
var
|
9432
|
+
var _temp24 = function _temp24(_result) {
|
9412
9433
|
if (_exit) return _result;
|
9413
9434
|
dispatch(setLoading(false));
|
9414
9435
|
};
|
9415
9436
|
var _exit = false;
|
9416
9437
|
dispatch(setLoading(true));
|
9417
|
-
var
|
9438
|
+
var _temp23 = _catch(function () {
|
9418
9439
|
var canvas = document.querySelector("#canvas");
|
9419
9440
|
var headerCanvas = document.querySelector("#header-canvas");
|
9420
9441
|
if (!canvas || !headerCanvas) {
|
@@ -9436,7 +9457,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9436
9457
|
var imgWidth = WIDTH_PAPER;
|
9437
9458
|
var chartWidth = WIDTH_PAPER - 20;
|
9438
9459
|
return Promise.resolve(html2canvas(headerCanvas)).then(function (header) {
|
9439
|
-
function
|
9460
|
+
function _temp22() {
|
9440
9461
|
doc.save("download.pdf");
|
9441
9462
|
}
|
9442
9463
|
var imgHeaderHeight = header.height * imgWidth / header.width;
|
@@ -9444,110 +9465,133 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9444
9465
|
doc.addImage(imgHeaderData, 'PNG', 0, 0, imgWidth, imgHeaderHeight);
|
9445
9466
|
line += imgHeaderHeight;
|
9446
9467
|
if (line > HEIGHT_PAPER) breakPage();
|
9447
|
-
var
|
9468
|
+
var _temp21 = function () {
|
9448
9469
|
if (canvas && canvas.childElementCount > 0) {
|
9449
9470
|
var _index = 0;
|
9450
|
-
var
|
9471
|
+
var _temp20 = _for(function () {
|
9451
9472
|
return _index < canvas.childElementCount;
|
9452
9473
|
}, function () {
|
9453
9474
|
return _index++;
|
9454
9475
|
}, function () {
|
9455
|
-
function
|
9456
|
-
function
|
9476
|
+
function _temp19() {
|
9477
|
+
function _temp17() {
|
9457
9478
|
line += 20;
|
9458
9479
|
}
|
9459
|
-
var
|
9480
|
+
var printChartTitle = function printChartTitle() {
|
9481
|
+
try {
|
9482
|
+
if (chartTitleData && chartTitleHeight) {
|
9483
|
+
if (line + chartTitleHeight + 10 > HEIGHT_PAPER) breakPage();else line + 10;
|
9484
|
+
doc.addImage(chartTitleData, 'PNG', 10, line, chartWidth, chartTitleHeight);
|
9485
|
+
line += chartTitleHeight;
|
9486
|
+
}
|
9487
|
+
return Promise.resolve();
|
9488
|
+
} catch (e) {
|
9489
|
+
return Promise.reject(e);
|
9490
|
+
}
|
9491
|
+
};
|
9492
|
+
var _temp16 = function () {
|
9460
9493
|
if (printContainerEls.length) {
|
9461
|
-
var
|
9462
|
-
function
|
9494
|
+
var _temp15 = _forTo(printContainerEls, function (i) {
|
9495
|
+
function _temp14() {
|
9463
9496
|
var printHeader = function printHeader(top) {
|
9464
9497
|
if (top === void 0) {
|
9465
9498
|
top = 0;
|
9466
9499
|
}
|
9467
9500
|
try {
|
9468
|
-
if (!
|
9469
|
-
var _height = printHeaderCanvas.height * chartWidth / printHeaderCanvas.width;
|
9470
|
-
var _data = printHeaderCanvas.toDataURL('image/png');
|
9501
|
+
if (!printHeaderData || !printHeaderHeight) return Promise.resolve();
|
9471
9502
|
line += top;
|
9472
|
-
if (line +
|
9473
|
-
doc.addImage(
|
9474
|
-
line +=
|
9503
|
+
if (line + printHeaderHeight > HEIGHT_PAPER) breakPage();
|
9504
|
+
doc.addImage(printHeaderData, 'PNG', 10, line, chartWidth, printHeaderHeight);
|
9505
|
+
line += printHeaderHeight;
|
9475
9506
|
return Promise.resolve();
|
9476
9507
|
} catch (e) {
|
9477
9508
|
return Promise.reject(e);
|
9478
9509
|
}
|
9479
9510
|
};
|
9480
|
-
|
9481
|
-
|
9482
|
-
|
9483
|
-
var
|
9484
|
-
|
9485
|
-
|
9486
|
-
|
9487
|
-
|
9488
|
-
|
9511
|
+
var printContents = printContainerEl.querySelectorAll("." + PrintContentClassName);
|
9512
|
+
if (!printContents.length) return;
|
9513
|
+
var _temp12 = _forTo(printContents, function (j) {
|
9514
|
+
var rowItem = printContents[j];
|
9515
|
+
return Promise.resolve(html2canvas(rowItem)).then(function (rowItemCanvas) {
|
9516
|
+
function _temp11() {
|
9517
|
+
doc.addImage(data, 'PNG', 10, line, chartWidth, height);
|
9518
|
+
line += height;
|
9519
|
+
}
|
9520
|
+
var height = rowItemCanvas.height * chartWidth / rowItemCanvas.width;
|
9521
|
+
var data = rowItemCanvas.toDataURL('image/png');
|
9522
|
+
if (i === 0 && j === 0 && line + height + (printHeaderHeight || 0) + ((chartTitleHeight || 0) + 10) + 20 > HEIGHT_PAPER) breakPage();
|
9523
|
+
i === 0 && j === 0 && printChartTitle();
|
9524
|
+
var _temp10 = function () {
|
9525
|
+
if (line + height + 20 > HEIGHT_PAPER) {
|
9526
|
+
breakPage();
|
9527
|
+
return Promise.resolve(printHeader()).then(function () {});
|
9528
|
+
} else {
|
9529
|
+
var _temp25 = function () {
|
9530
|
+
if (j === 0) {
|
9531
|
+
return Promise.resolve(printHeader(10)).then(function () {});
|
9532
|
+
}
|
9533
|
+
}();
|
9534
|
+
if (_temp25 && _temp25.then) return _temp25.then(function () {});
|
9489
9535
|
}
|
9490
|
-
|
9491
|
-
|
9492
|
-
var _temp9 = function () {
|
9493
|
-
if (line + height > HEIGHT_PAPER) {
|
9494
|
-
breakPage();
|
9495
|
-
return Promise.resolve(printHeader()).then(function () {});
|
9496
|
-
}
|
9497
|
-
}();
|
9498
|
-
return _temp9 && _temp9.then ? _temp9.then(_temp10) : _temp10(_temp9);
|
9499
|
-
});
|
9536
|
+
}();
|
9537
|
+
return _temp10 && _temp10.then ? _temp10.then(_temp11) : _temp11(_temp10);
|
9500
9538
|
});
|
9501
|
-
if (_temp11 && _temp11.then) return _temp11.then(function () {});
|
9502
9539
|
});
|
9540
|
+
if (_temp12 && _temp12.then) return _temp12.then(function () {});
|
9503
9541
|
}
|
9504
9542
|
var printContainerEl = printContainerEls[i];
|
9505
9543
|
var printHeaderEl = printContainerEl.querySelector("." + PrintHeaderClassName);
|
9506
9544
|
var printHeaderCanvas = null;
|
9507
|
-
var
|
9545
|
+
var printHeaderHeight = null;
|
9546
|
+
var printHeaderData = "";
|
9547
|
+
var _temp13 = function () {
|
9508
9548
|
if (printHeaderEl) {
|
9509
|
-
return Promise.resolve(html2canvas(printHeaderEl)).then(function (
|
9510
|
-
printHeaderCanvas =
|
9549
|
+
return Promise.resolve(html2canvas(printHeaderEl)).then(function (_html2canvas2) {
|
9550
|
+
printHeaderCanvas = _html2canvas2;
|
9551
|
+
printHeaderHeight = printHeaderCanvas.height * chartWidth / printHeaderCanvas.width;
|
9552
|
+
printHeaderData = printHeaderCanvas.toDataURL('image/png');
|
9511
9553
|
});
|
9512
9554
|
}
|
9513
9555
|
}();
|
9514
|
-
return
|
9556
|
+
return _temp13 && _temp13.then ? _temp13.then(_temp14) : _temp14(_temp13);
|
9515
9557
|
});
|
9516
|
-
if (
|
9558
|
+
if (_temp15 && _temp15.then) return _temp15.then(function () {});
|
9517
9559
|
} else {
|
9518
9560
|
return Promise.resolve(html2canvas(chart)).then(function (chartCanvas) {
|
9519
9561
|
var imgBodyHeight = chartCanvas.height * chartWidth / chartCanvas.width;
|
9520
9562
|
var imgBodyData = chartCanvas.toDataURL('image/png');
|
9521
9563
|
line += 10;
|
9522
|
-
if (line + imgBodyHeight > HEIGHT_PAPER) breakPage();
|
9564
|
+
if (line + imgBodyHeight + 20 + (chartTitleHeight || 0) > HEIGHT_PAPER) breakPage();
|
9565
|
+
printChartTitle();
|
9523
9566
|
doc.addImage(imgBodyData, 'PNG', 10, line, chartWidth, imgBodyHeight);
|
9524
9567
|
line += imgBodyHeight;
|
9525
9568
|
});
|
9526
9569
|
}
|
9527
9570
|
}();
|
9528
|
-
return
|
9571
|
+
return _temp16 && _temp16.then ? _temp16.then(_temp17) : _temp17(_temp16);
|
9529
9572
|
}
|
9530
9573
|
var chart = canvas.children.item(_index);
|
9531
9574
|
if (chart.getAttribute("id") === "header-canvas") return;
|
9532
9575
|
var chartTitle = chart.querySelector(".chart-title");
|
9533
9576
|
var printContainerEls = chart.querySelectorAll("." + PrintContainerClassName);
|
9534
|
-
var
|
9577
|
+
var printChartTitleCanvas = null;
|
9578
|
+
var chartTitleHeight = null;
|
9579
|
+
var chartTitleData = "";
|
9580
|
+
var _temp18 = function () {
|
9535
9581
|
if (chartTitle && printContainerEls.length) {
|
9536
|
-
return Promise.resolve(html2canvas(chartTitle)).then(function (
|
9537
|
-
|
9538
|
-
|
9539
|
-
|
9540
|
-
doc.addImage(data, 'PNG', 10, line, chartWidth, height);
|
9541
|
-
line += height;
|
9582
|
+
return Promise.resolve(html2canvas(chartTitle)).then(function (_html2canvas) {
|
9583
|
+
printChartTitleCanvas = _html2canvas;
|
9584
|
+
chartTitleHeight = printChartTitleCanvas.height * chartWidth / printChartTitleCanvas.width;
|
9585
|
+
chartTitleData = printChartTitleCanvas.toDataURL('image/png');
|
9542
9586
|
});
|
9543
9587
|
}
|
9544
9588
|
}();
|
9545
|
-
return
|
9589
|
+
return _temp18 && _temp18.then ? _temp18.then(_temp19) : _temp19(_temp18);
|
9546
9590
|
});
|
9547
|
-
if (
|
9591
|
+
if (_temp20 && _temp20.then) return _temp20.then(function () {});
|
9548
9592
|
}
|
9549
9593
|
}();
|
9550
|
-
return
|
9594
|
+
return _temp21 && _temp21.then ? _temp21.then(_temp22) : _temp22(_temp21);
|
9551
9595
|
});
|
9552
9596
|
}, function (error) {
|
9553
9597
|
console.log({
|
@@ -9555,21 +9599,27 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9555
9599
|
});
|
9556
9600
|
toast.error("Print pdf failure!");
|
9557
9601
|
});
|
9558
|
-
return Promise.resolve(
|
9602
|
+
return Promise.resolve(_temp23 && _temp23.then ? _temp23.then(_temp24) : _temp24(_temp23));
|
9559
9603
|
} catch (e) {
|
9560
9604
|
return Promise.reject(e);
|
9561
9605
|
}
|
9562
9606
|
};
|
9607
|
+
var examTime = useMemo(function () {
|
9608
|
+
return utcToLocalTime(resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.startTime, "HH:mm") + " ~ " + utcToLocalTime(resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.finishTime, "HH:mm");
|
9609
|
+
}, [resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.startTime, resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.finishTime]);
|
9563
9610
|
return {
|
9611
|
+
examTime: examTime,
|
9564
9612
|
series: series,
|
9565
9613
|
chartOptions: chartOptions,
|
9614
|
+
allChartOptions: allChartOptions,
|
9615
|
+
allSeries: allSeries,
|
9566
9616
|
dataChartIndex: dataChartIndex,
|
9567
9617
|
totalTime: totalTime,
|
9568
9618
|
isStudent: isStudent,
|
9569
9619
|
resultDatas: resultDatas,
|
9570
9620
|
effectSize: effectSize,
|
9571
9621
|
longTimeSpend: longTimeSpend,
|
9572
|
-
|
9622
|
+
timelyOrderQuestions: timelyOrderQuestions,
|
9573
9623
|
openProblem: openProblem,
|
9574
9624
|
categoryResponses: categoryResponses,
|
9575
9625
|
setOpenProblem: setOpenProblem,
|
@@ -11443,9 +11493,9 @@ var iconUpArrow = function iconUpArrow(_ref) {
|
|
11443
11493
|
}, React.createElement("path", {
|
11444
11494
|
d: "M5.25 15.375L12 8.625L18.75 15.375",
|
11445
11495
|
stroke: "#CED2DA",
|
11446
|
-
|
11447
|
-
|
11448
|
-
|
11496
|
+
strokeWidth: "2",
|
11497
|
+
strokeLinecap: "round",
|
11498
|
+
strokeLinejoin: "round"
|
11449
11499
|
}));
|
11450
11500
|
};
|
11451
11501
|
|
@@ -11464,9 +11514,9 @@ var iconDownArrow = function iconDownArrow(_ref) {
|
|
11464
11514
|
}, React.createElement("path", {
|
11465
11515
|
d: "M5.25 8.625L12 15.375L18.75 8.625",
|
11466
11516
|
stroke: "#CED2DA",
|
11467
|
-
|
11468
|
-
|
11469
|
-
|
11517
|
+
strokeWidth: "2",
|
11518
|
+
strokeLinecap: "round",
|
11519
|
+
strokeLinejoin: "round"
|
11470
11520
|
}));
|
11471
11521
|
};
|
11472
11522
|
|
@@ -11979,11 +12029,17 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
11979
12029
|
examSessionId = _ref.examSessionId,
|
11980
12030
|
studentId = _ref.studentId,
|
11981
12031
|
code = _ref.code;
|
11982
|
-
var
|
12032
|
+
var _useTab = useTab(),
|
12033
|
+
selected = _useTab.selected,
|
12034
|
+
handleChangeTab = _useTab.handleChangeTab;
|
12035
|
+
var _useExamResult = useExamResult(searchParams, onNavigate, examSessionId, studentId, code, handleChangeTab),
|
12036
|
+
examTime = _useExamResult.examTime,
|
11983
12037
|
series = _useExamResult.series,
|
12038
|
+
allSeries = _useExamResult.allSeries,
|
11984
12039
|
chartOptions = _useExamResult.chartOptions,
|
12040
|
+
allChartOptions = _useExamResult.allChartOptions,
|
11985
12041
|
dataChartIndex = _useExamResult.dataChartIndex,
|
11986
|
-
|
12042
|
+
timelyOrderQuestions = _useExamResult.timelyOrderQuestions,
|
11987
12043
|
isStudent = _useExamResult.isStudent,
|
11988
12044
|
openProblem = _useExamResult.openProblem,
|
11989
12045
|
resultDatas = _useExamResult.resultDatas,
|
@@ -12000,11 +12056,8 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12000
12056
|
handleCreateQuestion = _useCreateQuestionDia.handleCreateQuestion,
|
12001
12057
|
openCreateQuestionDialog = _useCreateQuestionDia.openCreateQuestionDialog,
|
12002
12058
|
toggleCreateQuestion = _useCreateQuestionDia.toggleCreateQuestion;
|
12003
|
-
var _useTab = useTab(),
|
12004
|
-
selected = _useTab.selected,
|
12005
|
-
handleChangeTab = _useTab.handleChangeTab;
|
12006
12059
|
var isTabletUp = useMediaQuery('(min-width:900px)');
|
12007
|
-
return React.createElement(Fragment$1, null,
|
12060
|
+
return React.createElement(Fragment$1, null, timelyOrderQuestions[dataChartIndex] && longTimeSpend && resultDatas && effectSize ? React.createElement("div", {
|
12008
12061
|
style: {
|
12009
12062
|
width: "100%"
|
12010
12063
|
}
|
@@ -12070,7 +12123,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12070
12123
|
fontWeight: 600,
|
12071
12124
|
color: "#414E62"
|
12072
12125
|
}
|
12073
|
-
},
|
12126
|
+
}, examTime)), React.createElement(Stack, null, React.createElement(Typography, {
|
12074
12127
|
sx: {
|
12075
12128
|
fontSize: "13px",
|
12076
12129
|
fontWeight: 600,
|
@@ -12141,6 +12194,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12141
12194
|
var label = _ref2.label,
|
12142
12195
|
value = _ref2.value;
|
12143
12196
|
return React.createElement(Button, {
|
12197
|
+
key: label,
|
12144
12198
|
className: styles["truncate"],
|
12145
12199
|
disableTouchRipple: true,
|
12146
12200
|
sx: {
|
@@ -12188,7 +12242,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12188
12242
|
options: chartOptions,
|
12189
12243
|
series: series
|
12190
12244
|
}))), React.createElement("div", {
|
12191
|
-
className: styles$4["nextChart"] + " " + (dataChartIndex <
|
12245
|
+
className: styles$4["nextChart"] + " " + (dataChartIndex < timelyOrderQuestions.length - 1 && "pointer"),
|
12192
12246
|
onClick: handleNextChart
|
12193
12247
|
}, React.createElement(iconBtnNextChart, null)))), React.createElement(CustomTabPanel, {
|
12194
12248
|
value: selected,
|
@@ -12286,7 +12340,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12286
12340
|
fontWeight: 600,
|
12287
12341
|
color: "#414E62"
|
12288
12342
|
}
|
12289
|
-
},
|
12343
|
+
}, examTime)), React.createElement(Stack, null, React.createElement(Typography, {
|
12290
12344
|
sx: {
|
12291
12345
|
fontSize: "13px",
|
12292
12346
|
fontWeight: 600,
|
@@ -12319,7 +12373,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12319
12373
|
}, React.createElement(Typography, {
|
12320
12374
|
className: "chart-title",
|
12321
12375
|
sx: {
|
12322
|
-
fontSize: "
|
12376
|
+
fontSize: "18px",
|
12323
12377
|
fontWeight: 700,
|
12324
12378
|
color: "#414E62"
|
12325
12379
|
}
|
@@ -12334,26 +12388,33 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12334
12388
|
gap: "12px",
|
12335
12389
|
marginTop: "24px"
|
12336
12390
|
}, React.createElement(Typography, {
|
12391
|
+
className: "chart-title",
|
12337
12392
|
sx: {
|
12338
|
-
fontSize: "
|
12393
|
+
fontSize: "18px",
|
12339
12394
|
fontWeight: 700,
|
12340
12395
|
color: "#414E62"
|
12341
12396
|
}
|
12342
|
-
}, t(TabList[1].label)),
|
12343
|
-
|
12344
|
-
|
12345
|
-
|
12346
|
-
|
12347
|
-
|
12348
|
-
|
12349
|
-
|
12350
|
-
|
12351
|
-
|
12352
|
-
|
12353
|
-
|
12354
|
-
|
12355
|
-
|
12356
|
-
|
12397
|
+
}, t(TabList[1].label)), timelyOrderQuestions.map(function (timelyOrderQuestion, index) {
|
12398
|
+
return React.createElement("div", {
|
12399
|
+
key: index,
|
12400
|
+
className: PrintContainerClassName
|
12401
|
+
}, React.createElement(Typography, {
|
12402
|
+
className: "pb-2 " + PrintHeaderClassName,
|
12403
|
+
sx: {
|
12404
|
+
fontSize: "14px",
|
12405
|
+
fontWeight: 700,
|
12406
|
+
color: "#414E62"
|
12407
|
+
}
|
12408
|
+
}, t("article_number"), " ", timelyOrderQuestion.article), React.createElement("div", {
|
12409
|
+
className: styles$4["compareChart"] + " " + PrintContentClassName
|
12410
|
+
}, React.createElement("div", {
|
12411
|
+
className: styles$4["chart"] + " sr-line-chart"
|
12412
|
+
}, React.createElement("div", null, React.createElement(ReactApexChart, {
|
12413
|
+
height: 389,
|
12414
|
+
options: allChartOptions[index],
|
12415
|
+
series: allSeries[index]
|
12416
|
+
})))));
|
12417
|
+
})), React.createElement(Stack, {
|
12357
12418
|
display: "flex",
|
12358
12419
|
flexDirection: "column",
|
12359
12420
|
gap: "12px",
|
@@ -12361,7 +12422,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12361
12422
|
}, React.createElement(Typography, {
|
12362
12423
|
className: "chart-title",
|
12363
12424
|
sx: {
|
12364
|
-
fontSize: "
|
12425
|
+
fontSize: "18px",
|
12365
12426
|
fontWeight: 700,
|
12366
12427
|
color: "#414E62"
|
12367
12428
|
}
|
@@ -12376,7 +12437,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12376
12437
|
}, React.createElement(Typography, {
|
12377
12438
|
className: "chart-title",
|
12378
12439
|
sx: {
|
12379
|
-
fontSize: "
|
12440
|
+
fontSize: "18px",
|
12380
12441
|
fontWeight: 700,
|
12381
12442
|
color: "#414E62"
|
12382
12443
|
}
|