This commit is contained in:
2021-04-06 23:21:49 +00:00
parent 10658239af
commit 57c4034163
2 changed files with 30 additions and 8 deletions

View File

@@ -29,7 +29,30 @@
>[selected su_index: {{ pvm.selectedScheduledUserItemIndex }}]</span >[selected su_index: {{ pvm.selectedScheduledUserItemIndex }}]</span
> >
<template v-if="pvm.scheduledUserItemCount > 1"> <template v-if="pvm.scheduledUserItemCount > 1">
scheduled user table here <!-- ################################ SCHEDULED USERS TABLE ############################### -->
<v-col cols="12">
<v-data-table
:headers="headerList"
:items="itemList"
class="elevation-1"
disable-pagination
disable-filtering
disable-sort
hide-default-footer
data-cy="itemsTable"
dense
:item-class="itemRowClasses"
@click:row="selectItem"
>
<!-- <template v-slot:[`item.actions`]="{ item }">
<v-btn icon @click="selectItem(item)">
<v-icon :class="itemRowClasses(item)">
$ayiEdit
</v-icon>
</v-btn>
</template> -->
</v-data-table>
</v-col>
</template> </template>
<template v-if="pvm.hasSelectedScheduledUserItem"> <template v-if="pvm.hasSelectedScheduledUserItem">
scheduled user form here scheduled user form here

View File

@@ -22,13 +22,12 @@
</v-menu> </v-menu>
</v-col> </v-col>
<!-- items:{{ value.items }}<br /> --> <!-- items:{{ value.items }}<br />
<span class="text-caption" <span class="text-caption"
>[selected index: {{ pvm.selectedItemIndex }}]</span >[selected index: {{ pvm.selectedItemIndex }}]</span
> >-->
<template v-if="pvm.woItemCount > 1"> <template v-if="pvm.woItemCount > 1">
<!-- Workorder item table here, with a click it triggers selected item at parent which triggers form to open for edit below grid --> <!-- ################################ WORK ORDER ITEMS TABLE ############################### -->
<!-- ################################ WORK ORDER ITEMS LIST ############################### -->
<v-col cols="12"> <v-col cols="12">
<v-data-table <v-data-table
:headers="headerList" :headers="headerList"
@@ -43,13 +42,13 @@
:item-class="itemRowClasses" :item-class="itemRowClasses"
@click:row="selectItem" @click:row="selectItem"
> >
<template v-slot:[`item.actions`]="{ item }"> <!-- <template v-slot:[`item.actions`]="{ item }">
<v-btn icon @click="selectItem(item)"> <v-btn icon @click="selectItem(item)">
<v-icon :class="itemRowClasses(item)"> <v-icon :class="itemRowClasses(item)">
$ayiEdit $ayiEdit
</v-icon> </v-icon>
</v-btn> </v-btn>
</template> </template> -->
</v-data-table> </v-data-table>
</v-col> </v-col>
</template> </template>
@@ -202,7 +201,7 @@ and it's probably not a big list to fill anyway
}); });
} }
headers.push({ text: "", value: "actions" }); // headers.push({ text: "", value: "actions" });
return headers; return headers;
}, },