|
@@ -1,6 +1,6 @@
|
|
|
define([ 'app/app' ], function(app) {
|
|
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();
|
|
BaseService.scrollBackToTop();
|
|
|
document.title = '器件申请-优软商城';
|
|
document.title = '器件申请-优软商城';
|
|
|
var loadMyComponentsSubmit = function(){
|
|
var loadMyComponentsSubmit = function(){
|
|
@@ -23,8 +23,8 @@ define([ 'app/app' ], function(app) {
|
|
|
params.total(page.totalElements);
|
|
params.total(page.totalElements);
|
|
|
$defer.resolve(page.content);
|
|
$defer.resolve(page.content);
|
|
|
}
|
|
}
|
|
|
- }, function(){
|
|
|
|
|
-
|
|
|
|
|
|
|
+ }, function(err){
|
|
|
|
|
+ toaster.pop('error', err.data);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|