add unit id
Deploy / build_and_push_images (push) Successful in 1m28s Details
Deploy / deploy_to_server (push) Successful in 23s Details

This commit is contained in:
Kseninia Mikhaylova 2024-05-23 11:36:02 +03:00
parent 739f551d74
commit 25da63fd82
2 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,7 @@ const { data, pending, error, status } = await useLazyFetch<APIBody>(`${config.p
</template> </template>
<template #name-data="{ row }"> <template #name-data="{ row }">
<div class="text-wrap"> <div class="text-wrap">
{{ row.sn }} - {{ row.sn }} - {{ row.unit_id }} -
{{ row.name }} {{ row.name }}
</div> </div>
</template> </template>

View File

@ -60,6 +60,7 @@ def get_vtk(item_id):
result = [ result = [
{ {
"sn": d["sn"], "sn": d["sn"],
"unit_id": d["unit_id"],
"last_online": d["last_seen_at"], "last_online": d["last_seen_at"],
"name": ", ".join( "name": ", ".join(
list(filter(None, [d["location_name"], d["address"], d["city"]])) list(filter(None, [d["location_name"], d["address"], d["city"]]))