摘要:ng-grid foreach
$scope.initTxtRamt = function() {
angular.forEach($scope.initGridData, function(data, index){
if(data.trmk == '成功'){
$scope.model.brtamt = data.famt;
} else {
$scope.model.brtamt = "0";
}
});
}