Commit 638648b5 by peema_phongam

splice question

parent 5121a8ba
......@@ -191,10 +191,11 @@ angular.module('myHR').controller('PreviewExam', ['$scope', '$http', '$mdDialog'
})
setThreeScore += sumSentence
})
//Set 1 + 2
$scope.question.question.splice(2, 1)
let setOneTwoScore = $scope.question.getRealScore($scope.question.getQuestion())
let copyQuestion = JSON.parse(JSON.stringify($scope.question));
copyQuestion.question.splice(2, 1)
let setOneTwoScore = $scope.question.getRealScore(copyQuestion.question)
$scope.DHASSupReadTestGrade = 'Unknown'
$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