|
@@ -171,11 +171,12 @@ app.controller("chartingCtrl", [
|
171
|
171
|
if ((response.status = 200)) {
|
172
|
172
|
$scope.isMaskground = false;
|
173
|
173
|
$scope.charginrow = response.data;
|
174
|
|
- var totalComplexity = 0;
|
175
|
|
- totalComplexity = $scope.charginrow.reduce((pre,cur)=>pre + cur.complexity,0)
|
|
174
|
+ // var totalComplexity = 0;
|
|
175
|
+ // totalComplexity = $scope.charginrow.reduce((pre,cur)=>pre + cur.complexity,0)
|
176
|
176
|
angular.forEach($scope.charginrow, function(item) {
|
177
|
177
|
// sumChargin = sumChargin + item.complexity;
|
178
|
|
- item.complexityPercentage = (item.complexity / totalComplexity * 100).toFixed(2) + '%';
|
|
178
|
+ // item.complexityPercentage = (item.complexity / totalComplexity * 100).toFixed(2) + '%';
|
|
179
|
+ item.percent += '%';
|
179
|
180
|
})
|
180
|
181
|
if (response.list && response.list.length == 0) {
|
181
|
182
|
$scope.shows = true;
|