Commit 638648b5 by peema_phongam

splice question

parent 5121a8ba
...@@ -191,10 +191,11 @@ angular.module('myHR').controller('PreviewExam', ['$scope', '$http', '$mdDialog' ...@@ -191,10 +191,11 @@ angular.module('myHR').controller('PreviewExam', ['$scope', '$http', '$mdDialog'
}) })
setThreeScore += sumSentence setThreeScore += sumSentence
}) })
//Set 1 + 2 //Set 1 + 2
$scope.question.question.splice(2, 1) let copyQuestion = JSON.parse(JSON.stringify($scope.question));
let setOneTwoScore = $scope.question.getRealScore($scope.question.getQuestion()) copyQuestion.question.splice(2, 1)
let setOneTwoScore = $scope.question.getRealScore(copyQuestion.question)
$scope.DHASSupReadTestGrade = 'Unknown' $scope.DHASSupReadTestGrade = 'Unknown'
$scope.DHASSupReadTestScore = setThreeScore + setOneTwoScore $scope.DHASSupReadTestScore = setThreeScore + setOneTwoScore
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment