|
|
|
@ -42,7 +42,7 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
let finished = $scope.progress.finished_sequence;
|
|
|
|
|
if ($scope.currentTasks) {
|
|
|
|
|
if ($scope.currentTasks && finished) {
|
|
|
|
|
for (let finId of finished) {
|
|
|
|
|
$scope.currentTasks.filter(task => task.task_id === finId).forEach(v => {
|
|
|
|
|
v.idle = false;
|
|
|
|
@ -157,7 +157,8 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
|
|
|
|
}
|
|
|
|
|
}]);
|
|
|
|
|
|
|
|
|
|
app.controller('settleTasksPriorityListManageCtrl', ['$scope', '$http', 'commonDialog', function ($scope, $http, commonDialog) {
|
|
|
|
|
app.controller('settleTasksPriorityListManageCtrl', ['$scope', '$http', '$uibModal', 'commonDialog',
|
|
|
|
|
function ($scope, $http, $uibModal, commonDialog) {
|
|
|
|
|
$scope.filters = {};
|
|
|
|
|
$scope.input = {}
|
|
|
|
|
$scope.loadPriorities = function () {
|
|
|
|
@ -165,6 +166,7 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
|
|
|
|
$scope.clients = res.data;
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
$scope.loadPriorities();
|
|
|
|
|
$scope.addPriorityClient = function () {
|
|
|
|
|
if (!$scope.input.moniker) {
|
|
|
|
|
return;
|
|
|
|
|