|
|
@@ -325,7 +325,6 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
};
|
|
|
});
|
|
|
SaleStat.seller({}, function(data){
|
|
|
- console.log(data);
|
|
|
var p = [], q = [];
|
|
|
angular.forEach(data.month, function(d){
|
|
|
p.push({x: d.seller.userName, y: [(d.total || 0)], tooltip: (d.total || 0)});
|
|
|
@@ -333,8 +332,6 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
angular.forEach(data.year, function(d){
|
|
|
q.push({x: d.seller.userName, y: [(d.total || 0)], tooltip: (d.total || 0)});
|
|
|
});
|
|
|
- console.log(p);
|
|
|
- console.log(q);
|
|
|
$scope.sellerCharts = {
|
|
|
month : {
|
|
|
chartType : 'pie',
|