Добавлен расширенный отчет по реализации
Добавлен монитор активности
This commit is contained in:
miroman-afk
2023-08-03 11:05:15 +03:00
parent 19ad7d1c8a
commit c4dc6e02a0
93 changed files with 13328 additions and 1122 deletions

View File

@@ -16,7 +16,7 @@
<tbody>
<tr ng-repeat="task in active_tasks">
<td>{{ task.name }} <span class="label primary m-r-xs left5">{{ task.code }}</span></td>
<td>{{ task.name }} <span class="label primary m-r-xs left5">{{ task.code }}</span> <small>Next at: {{task.next_at}}</small></td>
<td><input type="number" class="form-control" ng-model="task.period" ng-change="changePeriod(task)" /></td>
<td>
<label class="ui-switch ui-switch-md m-t-xs">
@@ -30,7 +30,7 @@
</tr>
<tr ng-repeat="task in all_tasks" ng-if="isTaskActive(task)">
<td>{{ task.name }} <span class="label primary m-r-xs left5">{{ task.code }}</span></td>
<td>{{ task.name }} <span class="label primary m-r-xs left5">{{ task.code }}</span> <small>Next at: {{task.next_at}}</small></td>
<td><input type="number" class="form-control" ng-model="task.period" ng-change="changePeriod(task)" /></td>
<td>
<label class="ui-switch ui-switch-md m-t-xs">

View File

@@ -1,10 +1,12 @@
<div id="container-floating">
<div class="nd1 nds" data-toggle="tooltip" data-placement="left" title="Обновить" ng-click="update()" style="background-color: #d3a411"
onmouseenter="$(this).tooltip('show')">
<div class="nd1 nds" data-toggle="tooltip" data-placement="left" title="Обновить" ng-click="update()"
style="background-color: #d3a411"
onmouseenter="$(this).tooltip('show')">
<i class="material-icons">&#xE5D5;</i>
</div>
<div id="floating-button" data-toggle="tooltip" data-placement="left" title="Действия" onmouseenter="$(this).tooltip('show')">
<div id="floating-button" data-toggle="tooltip" data-placement="left" title="Действия"
onmouseenter="$(this).tooltip('show')">
<p class="plus">
<i class="material-icons">&#xE5D2;</i>
</p>
@@ -17,46 +19,58 @@
<div class="padding">
<div class="box">
<!-- <div class="table-responsive"> -->
<table class="table table-striped m-a-0">
<thead>
<tr>
<th>ID</th>
<th>Тип</th>
<th>Код рабочей группы</th>
<th>Код рабочего места</th>
<th>Статус</th>
<th>Последняя активность</th>
<th style="width: 70px"><i class="material-icons">&#xE3E7;</i></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="terminal in terminals">
<td><strong>{{ terminal.key }}</strong></td>
<td><strong>{{ terminal.soft }}</strong></td>
<td>{{ terminal.work_group }}</td>
<td>{{ terminal.work_code }}</td>
<td>
<label class="ui-switch ui-switch-md m-t-xs">
<input type="checkbox" ng-model="terminal.is_active" ng-change="onLicence(terminal.key, terminal.is_active)">
<i></i>
</label>
</td>
<td><span ng-if="terminal.last_activity != '0'">{{ terminal.last_activity }}</span></td>
<td>
<div class="dropdown inline">
<button class="btn btn-sm white dropdown-toggle" data-toggle="dropdown">
<i class="material-icons">&#xE5D2;</i>
</button>
<div class="dropdown-menu pull-right dropdown-menu-scale">
<a class="dropdown-item" ng-click="editTerminal(terminal.key)">Управление синхронизацией</a>
<a class="dropdown-item" ng-click="getEquipment(terminal.key)">Принтеры</a>
<a class="dropdown-item" ng-click="showLogs(terminal.key)">Журнал</a>
</div>
</div>
</td>
</tr>
</tbody>
</table>
<table class="table table-striped m-a-0">
<thead>
<tr>
<th>ID</th>
<th>Тип</th>
<th>Имя рабочей группы</th>
<th>Код рабочей группы</th>
<th>Код рабочего места</th>
<th>Статус</th>
<th>Последняя активность</th>
<th style="width: 70px"><i class="material-icons">&#xE3E7;</i></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="terminal in terminals">
<td><strong>{{ terminal.key }}</strong></td>
<td><strong>{{ terminal.soft }}</strong></td>
<td ng-if="terminal.name" ios-dblclick="terminal.name = null">{{ terminal.name }}</td>
<td ng-if="!terminal.name">
<div class="input-group">
<input type="text" class="form-control" ng-model="terminal.newName">
<span class="input-group-btn">
<button class="btn white" type="button" ng-click="updateTerminal(terminal)" ng-if="terminal.newName"><i class="fa fa-check"></i></button>
</span>
</div>
</td>
<td>{{ terminal.work_group }}</td>
<td>{{ terminal.work_code }}</td>
<td>
<label class="ui-switch ui-switch-md m-t-xs">
<input type="checkbox" ng-model="terminal.is_active"
ng-change="onLicence(terminal.key, terminal.is_active)">
<i></i>
</label>
</td>
<td><span ng-if="terminal.last_activity != '0'">{{ terminal.last_activity }}</span></td>
<td>
<div class="dropdown inline">
<button class="btn btn-sm white dropdown-toggle" data-toggle="dropdown">
<i class="material-icons">&#xE5D2;</i>
</button>
<div class="dropdown-menu pull-right dropdown-menu-scale">
<a class="dropdown-item" ng-click="editTerminal(terminal.key)">Управление синхронизацией</a>
<a class="dropdown-item" ng-click="getEquipment(terminal.key)">Принтеры</a>
<a class="dropdown-item" ng-click="showLogs(terminal.key)">Журнал</a>
</div>
</div>
</td>
</tr>
</tbody>
</table>
<!-- </div> -->
</div>
</div>