отчет своё
This commit is contained in:
@@ -335,15 +335,16 @@
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Секция отчётов (обновлена) -->
|
||||
<section id="reports-section" class="section">
|
||||
<h2><i class="fas fa-chart-pie"></i> Отчёт по задачам</h2>
|
||||
|
||||
<div class="reports-filters">
|
||||
<div class="filter-group">
|
||||
<label for="report-user-filter">Исполнитель:</label>
|
||||
<select id="report-user-filter" onchange="applyFilters()">
|
||||
<option value="">Все пользователи</option>
|
||||
<!-- будут загружены динамически -->
|
||||
<label for="report-task-id-filter">Номер задачи:</label>
|
||||
<select id="report-task-id-filter" onchange="applyFilters()">
|
||||
<option value="">Все номера</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="filter-group">
|
||||
@@ -358,6 +359,12 @@
|
||||
<option value="deleted">Удалена</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="filter-group">
|
||||
<label for="report-user-filter">Исполнитель:</label>
|
||||
<select id="report-user-filter" onchange="applyFilters()">
|
||||
<option value="">Все пользователи</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="filter-group">
|
||||
<label for="report-type-filter">Тип задачи:</label>
|
||||
<select id="report-type-filter" onchange="applyFilters()">
|
||||
@@ -373,12 +380,15 @@
|
||||
<option value="e_journal">Эл. журнал</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="filter-group">
|
||||
<button class="btn-primary" onclick="printReport()">
|
||||
<div class="filter-group buttons-group">
|
||||
<button class="btn-primary" onclick="printReport()" title="Печать">
|
||||
<i class="fas fa-print"></i> Печать
|
||||
</button>
|
||||
<button class="btn-secondary" onclick="loadReportData()">
|
||||
</button> <!--
|
||||
<button class="btn-secondary" onclick="loadReportData()" title="Обновить данные">
|
||||
<i class="fas fa-sync-alt"></i> Обновить
|
||||
</button> -->
|
||||
<button class="btn-primary" onclick="resetReportFilters()" title="Сбросить все фильтры">
|
||||
<i class="fas fa-undo-alt"></i> Сбросить
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -386,14 +396,13 @@
|
||||
<!-- Сводка по статусам -->
|
||||
<div id="report-summary" class="report-summary"></div>
|
||||
|
||||
<!-- Таблица с задачами -->
|
||||
<!-- Таблица с задачами (без описания) -->
|
||||
<div class="table-container report-table-container">
|
||||
<table id="report-table" class="report-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>№ задачи</th>
|
||||
<th>Название</th>
|
||||
<th>Описание</th>
|
||||
<th>Срок выполнения</th>
|
||||
<th>Исполнитель</th>
|
||||
<th>Автор</th>
|
||||
@@ -402,7 +411,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="report-table-body">
|
||||
<tr><td colspan="8" class="loading">Загрузка данных...</td></tr>
|
||||
<tr><td colspan="7" class="loading">Загрузка данных...</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -410,7 +419,7 @@
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<!-- Модальное окно редактирования задачи -->
|
||||
<!-- Модальные окна (без изменений) -->
|
||||
<div id="edit-task-modal" class="modal">
|
||||
<div class="modal-content">
|
||||
<span class="close" onclick="closeEditModal()">×</span>
|
||||
@@ -421,16 +430,13 @@
|
||||
<label for="edit-title">Название задачи:</label>
|
||||
<input type="text" id="edit-title" name="title" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="edit-description">Описание:</label>
|
||||
<textarea id="edit-description" name="description" rows="4"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="edit-due-date">Дата выполнения:</label>
|
||||
<input type="date" id="edit-due-date" name="dueDate" required>
|
||||
|
||||
<div class="time-buttons">
|
||||
<button type="button" class="edit-time-btn" onclick="setEditTaskTime('12:00')">
|
||||
<i class="fas fa-sun"></i> До обеда (12:00)
|
||||
@@ -441,22 +447,18 @@
|
||||
</div>
|
||||
<input type="hidden" id="edit-due-time" name="dueTime" value="12:00">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Исполнители:</label>
|
||||
<div class="user-search">
|
||||
<div id="edit-users-checklist" class="checkbox-group"></div>
|
||||
<input type="text" id="edit-user-search" placeholder="Поиск исполнителей..." oninput="filterEditUsers()">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="edit-files">Добавить файлы:</label>
|
||||
<input type="file" id="edit-files" name="files" multiple>
|
||||
<div id="edit-file-list"></div>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn-primary">
|
||||
<i class="fas fa-save"></i> Сохранить изменения
|
||||
</button>
|
||||
@@ -464,21 +466,18 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Модальное окно копирования задачи -->
|
||||
<div id="copy-task-modal" class="modal">
|
||||
<div class="modal-content">
|
||||
<span class="close" onclick="closeCopyModal()">×</span>
|
||||
<h3><i class="fas fa-copy"></i> Создать копию задачи</h3>
|
||||
<form id="copy-task-form">
|
||||
<input type="hidden" id="copy-task-id">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="copy-due-date">Дата выполнения:</label>
|
||||
<input type="date" class="date-btn" id="copy-due-date" name="dueDate" required>
|
||||
<input type="hidden" id="copy-due-time" name="dueTime" value="19:00">
|
||||
<input type="text" id="copy-user-search" placeholder="Поиск исполнителей..." oninput="filterCopyUsers()">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div id="copy-users-checklist" class="checkbox-group"></div>
|
||||
</div>
|
||||
@@ -489,7 +488,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Остальные модальные окна остаются без изменений -->
|
||||
<div id="edit-assignment-modal" class="modal">
|
||||
<div class="modal-content">
|
||||
<span class="close" onclick="closeEditAssignmentModal()">×</span>
|
||||
|
||||
Reference in New Issue
Block a user