add unit id
This commit is contained in:
parent
739f551d74
commit
25da63fd82
|
@ -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>
|
||||||
|
|
1
main.py
1
main.py
|
@ -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"]]))
|
||||||
|
|
Loading…
Reference in New Issue