Browse Source

处理超级后台数据

wangcz 7 years ago
parent
commit
d83d6a67c5
1 changed files with 4 additions and 5 deletions
  1. 4 5
      src/main/webapp/resources/js/admin/controllers/statsDataCtrl.js

+ 4 - 5
src/main/webapp/resources/js/admin/controllers/statsDataCtrl.js

@@ -175,8 +175,7 @@ define([ 'app/app' ], function(app) {
 
         Goods.getAllCmp({}, function (data) {
             angular.forEach(data, function(value) {
-                switch(value.item)
-                {
+                switch(value.item) {
                     case '规格书':
                         $scope.start1 = value.count;
                         break;
@@ -271,9 +270,9 @@ define([ 'app/app' ], function(app) {
                         $scope.start31 = value.count;
                         break;
                     default:
-                        $scope.default = 0
-                }
-            })
+                        $scope.default = 0;
+                };
+            });
         }, function(res) {
             toaster.pop('error', '提示', '获取数据失败,请刷新页面')
         })