|
|
|
@ -89,6 +89,16 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
|
|
|
|
$scope.editingTask.whitelist_clients.splice(idx, 1);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
$scope.dropTask = function (task) {
|
|
|
|
|
let index = $scope.currentTasks.indexOf(task);
|
|
|
|
|
if (index >= 0) {
|
|
|
|
|
$scope.currentTasks.splice(index, 1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$scope.clearTasks = function () {
|
|
|
|
|
$scope.currentTasks = [];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$scope.newTask = function () {
|
|
|
|
|
$uibModal.open({
|
|
|
|
@ -131,7 +141,7 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
|
|
|
|
}
|
|
|
|
|
tasks.push(submitTask)
|
|
|
|
|
}
|
|
|
|
|
$http.post('/sys/settle_tasks', tasks).then(function () {
|
|
|
|
|
$http.post('/sys/settle_tasks', tasks).then(function (resp) {
|
|
|
|
|
commonDialog.alert({type: 'success', title: 'Success', content: resp.data.message})
|
|
|
|
|
ctrl.update_task = $interval(function () {
|
|
|
|
|
$scope.checkProgressStatus()
|
|
|
|
|