From: fomichev Date: Wed, 2 Jul 2025 10:08:40 +0000 (+0300) Subject: Изменение логики работы задачи X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=0fe36e39b11cd6a82cf0ec42d5ffe4f4d5c01860;p=erp24_rep%2Fyii-erp24%2F.git Изменение логики работы задачи --- diff --git a/erp24/controllers/CategoryPlanController.php b/erp24/controllers/CategoryPlanController.php index fef27425..e35d4e34 100644 --- a/erp24/controllers/CategoryPlanController.php +++ b/erp24/controllers/CategoryPlanController.php @@ -650,6 +650,7 @@ class CategoryPlanController extends Controller { 'status' => $task['status'], 'progress' => $task['progress'] ?? 0, 'error' => $task['error'] ?? null, + 'start' => $task['startTime'], ]); } diff --git a/erp24/web/js/category-plan/index.js b/erp24/web/js/category-plan/index.js index ce77ad49..651ddbc3 100644 --- a/erp24/web/js/category-plan/index.js +++ b/erp24/web/js/category-plan/index.js @@ -264,6 +264,7 @@ function startTaskPolling() { dataType: 'json', success: function (data) { console.log(data.status); + console.log(data.start); if (data.status === 'running' || data.status === 'pending') { $('#rebuild').prop('disabled', true).text('Пересчёт запущен...'); $('#delete').prop('disabled', true);