|
|
@ -89,6 +89,16 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
|
|
|
$scope.editingTask.whitelist_clients.splice(idx, 1);
|
|
|
|
$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 () {
|
|
|
|
$scope.newTask = function () {
|
|
|
|
$uibModal.open({
|
|
|
|
$uibModal.open({
|
|
|
@ -131,7 +141,7 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
tasks.push(submitTask)
|
|
|
|
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})
|
|
|
|
commonDialog.alert({type: 'success', title: 'Success', content: resp.data.message})
|
|
|
|
ctrl.update_task = $interval(function () {
|
|
|
|
ctrl.update_task = $interval(function () {
|
|
|
|
$scope.checkProgressStatus()
|
|
|
|
$scope.checkProgressStatus()
|
|
|
|