This commit is contained in:
2026-05-07 17:36:03 +03:00
parent 096fb1a3e2
commit 59e283945c
5 changed files with 126 additions and 49 deletions

View File

@@ -12,6 +12,9 @@
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500">ID</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500">Название</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500">Активен</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500">Последнее выполнение</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500">Результат</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500">Подключение</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500">Рестораны</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500">Создан</th>
@@ -22,6 +25,17 @@
<tr v-for="q in queries" :key="q.id" class="hover:bg-gray-50">
<td class="px-6 py-4 text-sm">{{ q.id }}</td>
<td class="px-6 py-4 text-sm font-medium">{{ q.name }}</td>
<td class="px-6 py-4 text-sm">
<span :class="q.active ? 'text-green-600' : 'text-red-600'">
{{ q.active ? 'Да' : 'Нет' }}
</span>
</td>
<td class="px-6 py-4 text-sm">{{ q.lastRun ? formatDate(q.lastRun) : '—' }}</td>
<td class="px-6 py-4 text-sm">
<span v-if="q.lastRunSuccess === null"></span>
<span v-else-if="q.lastRunSuccess" class="text-green-600">Успешно</span>
<span v-else class="text-red-600">Ошибка</span>
</td>
<td class="px-6 py-4 text-sm">{{ q.dbConnectionName }}</td>
<td class="px-6 py-4 text-sm">{{ q.restaurants }}</td>
<td class="px-6 py-4 text-sm">{{ formatDate(q.created) }}</td>