yangc 7 лет назад
Родитель
Сommit
c4a4fc901e

+ 3 - 3
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_brand_apply_list_ctrl.js

@@ -3,7 +3,7 @@
  */
 define(['app/app'], function(app) {
     "use strict";
-    app.register.controller('vendorBrandApplyListCtrl', ['$scope', '$rootScope', 'AuthenticationService', 'BaseService', 'BrandsSubmit', 'ngTableParams', function ($scope, $rootScope, AuthenticationService, BaseService, BrandsSubmit, ngTableParams) {
+    app.register.controller('vendorBrandApplyListCtrl', ['$scope', '$rootScope', 'AuthenticationService', 'BaseService', 'BrandsSubmit', 'ngTableParams', 'toaster', function ($scope, $rootScope, AuthenticationService, BaseService, BrandsSubmit, ngTableParams, toaster) {
         document.title = "品牌申请" + "-优软商城";
         $rootScope.active = 'vendor_brand_apply';
         var loadMyBrandsSubmit = function(){
@@ -27,8 +27,8 @@ define(['app/app'], function(app) {
                             params.total(page.totalElements);
                             $defer.resolve(page.content);
                         }
-                    }, function(){
-
+                    }, function(err){
+                        toaster.pop('error', err.data);
                     });
                 }
             });

+ 3 - 3
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_component_applylist_ctrl.js

@@ -1,6 +1,6 @@
 define([ 'app/app' ], function(app) {
     // 器件审批
-    app.register.controller('vendorComponentApplyListCtrl', ['$scope', 'ngTableParams', 'ComponentsSubmit', 'BaseService', '$stateParams', 'AuthenticationService', function($scope, ngTableParams, ComponentsSubmit, BaseService, $stateParams, AuthenticationService) {
+    app.register.controller('vendorComponentApplyListCtrl', ['$scope', 'ngTableParams', 'ComponentsSubmit', 'BaseService', '$stateParams', 'AuthenticationService', 'toaster', function($scope, ngTableParams, ComponentsSubmit, BaseService, $stateParams, AuthenticationService, toaster) {
         BaseService.scrollBackToTop();
         document.title = '器件申请-优软商城';
         var loadMyComponentsSubmit = function(){
@@ -23,8 +23,8 @@ define([ 'app/app' ], function(app) {
                             params.total(page.totalElements);
                             $defer.resolve(page.content);
                         }
-                    }, function(){
-
+                    }, function(err){
+                        toaster.pop('error', err.data);
                     });
                 }
             });

+ 3 - 3
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_component_batchapplylist_ctrl.js

@@ -1,6 +1,6 @@
 define([ 'app/app' ], function(app) {
     // 器件审批
-    app.register.controller('vendorComponentBatchApplyListCtrl', ['$scope', 'ngTableParams', 'BaseService', 'ComponentSubmit', function($scope, ngTableParams, BaseService, ComponentSubmit) {
+    app.register.controller('vendorComponentBatchApplyListCtrl', ['$scope', 'ngTableParams', 'BaseService', 'ComponentSubmit', 'toaster', function($scope, ngTableParams, BaseService, ComponentSubmit, toaster) {
         BaseService.scrollBackToTop();
         document.title = '器件申请-优软商城';
         $scope.active = 'all';
@@ -46,8 +46,8 @@ define([ 'app/app' ], function(app) {
                         params.total(page.totalElements);
                         $defer.resolve(page.content);
                     }
-                }, function(){
-
+                }, function(err){
+                    toaster.pop('error', err.data);
                 });
             }
         });