|
|
@@ -1,7 +1,7 @@
|
|
|
define(['app/app'], function(app) {
|
|
|
-
|
|
|
- app.register.controller('LogCtrl', ['$scope', '$rootScope', 'BaseService', 'ngTableParams', 'B2bErpLog', 'B2bUsageLog', function ($scope, $rootScope, BaseService, ngTableParams, ErpLog, UsageLog) {
|
|
|
- $rootScope.active = 'approvalflow_log';
|
|
|
+ app.register.controller('LogCtrl', ['$scope', '$rootScope', 'BaseService', 'ngTableParams', 'B2bErpLog', 'B2bUsageLog',
|
|
|
+ function ($scope, $rootScope, BaseService, ngTableParams, ErpLog, UsageLog) {
|
|
|
+ $rootScope.active = 'approvalflow_log';
|
|
|
$scope.erpParams = new ngTableParams({
|
|
|
page: 1,
|
|
|
count: 20,
|
|
|
@@ -34,7 +34,7 @@ define(['app/app'], function(app) {
|
|
|
}, {
|
|
|
total: 0,
|
|
|
counts: [5, 10, 25, 50],
|
|
|
- getData: function ($defer, params) {
|
|
|
+ getData: function($defer, params) {
|
|
|
$scope.loading = true;
|
|
|
UsageLog.get(BaseService.parseParams(params.url()), function (page) {
|
|
|
$scope.loading = false;
|
|
|
@@ -48,6 +48,5 @@ define(['app/app'], function(app) {
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
- }]);
|
|
|
-
|
|
|
+ }])
|
|
|
});
|