|
|
|
@ -40,6 +40,12 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
|
|
|
|
if (!$scope.currentTasks) {
|
|
|
|
|
$scope.currentTasks = [];
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (!ctrl.update_task) {
|
|
|
|
|
ctrl.update_task = $interval(function () {
|
|
|
|
|
$scope.checkProgressStatus();
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
let finished = $scope.progress.finished_sequence;
|
|
|
|
|
if ($scope.currentTasks && finished) {
|
|
|
|
@ -149,7 +155,12 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
commonDialog.alert({type: 'error', title: 'Error', content: resp.data.message})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
$scope.$on('$destroy', function () {
|
|
|
|
|
if (ctrl.update_task) {
|
|
|
|
|
$interval.cancel(ctrl.update_task)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}]);
|
|
|
|
|
app.controller('batchAddMerchantsDialogCtrl', ['$scope', '$http', function ($scope, $http) {
|
|
|
|
|