This commit is contained in:
2022-02-28 22:44:54 +00:00
parent 21ea8affb3
commit 543cc4b8e2

View File

@@ -1,6 +1,7 @@
<template>
<gz-dash
icon="$ayiUser"
icon="$ayiTools"
:add-url="'svc-workorders/0'"
:show-context-button="true"
:update-frequency="300000"
v-bind="[$props, $attrs]"
@@ -10,7 +11,28 @@
>
<template slot="main">
<v-sheet height="400">
{{ obj }}
<!-- {{ obj }} -->
<template v-for="(item, i) in obj">
<v-list-item :key="i" two-line :to="'/svc-workorders/' + item.id">
<v-list-item-content>
<v-list-item-title
><span class="text-h6">{{ item.serial }}</span
><span class="ml-4">{{ $ay.dt(item.servicedate) }}</span>
<span class="ml-4">{{ item.name }}</span></v-list-item-title
>
<v-list-item-subtitle>{{ item.notes }}</v-list-item-subtitle>
</v-list-item-content>
</v-list-item>
</template>
<!-- <template v-for="(item, i) in obj"
><span :key="i" class="ml-2"
><a :href="'/svc-workorders/' + item.id">{{ item.serial }}</a
><span class="ml-2"
>{{ $ay.dt(item.servicedate) }} {{ item.name }}</span
></span
></template
> -->
</v-sheet>
</template>