Таблица

This commit is contained in:
2026-01-31 20:01:39 +10:00
parent 836665f1ed
commit 80ba2168d0

View File

@@ -93,33 +93,46 @@
> >
{{ showtask ? "Скрыть задачи" : "Показать задачи" }} {{ showtask ? "Скрыть задачи" : "Показать задачи" }}
</button> </button>
<div <div
class="border-1 border-neutral-300 p-2 mt-2 rounded-xl overflow-x-auto" class="border-1 border-neutral-300 p-2 mt-2 rounded-xl overflow-x-auto"
v-if="showtask" v-if="showtask"
> >
<table class="w-full min-w-max"> <table class="w-full min-w-max">
<thead> <thead>
<tr> <tr>
<th class="px-2 py-2 text-left">Status</th> <th class="px-2 py-2 text-left">Status</th>
<th class="px-2 py-2 text-left">Source URL</th> <th class="px-2 py-2 text-left">Source URL</th>
</tr> <th class="px-2 py-2 text-left">Time start</th>
</thead> <th class="px-2 py-2 text-left">Time finish</th>
<tbody> </tr>
<tr v-for="task in tasks" :key="task.id"> </thead>
<td <tbody>
class="px-2 py-2 whitespace-nowrap overflow-hidden overflow-ellipsis max-w-full" <tr v-for="task in tasks" :key="task.id">
> <td
{{ task.status }} class="px-2 py-2 whitespace-nowrap overflow-hidden overflow-ellipsis max-w-full"
</td> >
<td {{ task.status }}
class="px-2 py-2 whitespace-nowrap overflow-hidden overflow-ellipsis max-w-full" </td>
> <td
{{ task.source_url }} class="px-2 py-2 whitespace-nowrap overflow-hidden overflow-ellipsis max-w-full"
</td> >
</tr> {{ task.source_url }}
</tbody> </td>
</table>
</div> <td
class="px-2 py-2 whitespace-nowrap overflow-hidden overflow-ellipsis max-w-full"
>
{{ task.created_at }}
</td>
<td
class="px-2 py-2 whitespace-nowrap overflow-hidden overflow-ellipsis max-w-full"
>
{{ task.finished_at }}
</td>
</tr>
</tbody>
</table>
</div>
</div> </div>
</div> </div>
</template> </template>
@@ -180,11 +193,8 @@ const loadTasks = async () => {
// Загрузка настроек при монтировании // Загрузка настроек при монтировании
onMounted(() => { onMounted(() => {
loadSettings(); loadSettings();
// load_log();
}); });
// watch(logs, load_log);
// Получение настроек с сервера // Получение настроек с сервера
const loadSettings = async () => { const loadSettings = async () => {
try { try {