This commit is contained in:
2021-03-18 21:48:00 +00:00
parent e90650b067
commit fa75d3bda8
2 changed files with 16 additions and 3 deletions

View File

@@ -29,7 +29,11 @@
<span @click="preFilterNav()" class="text-h5">
{{ preFilterMode.viz }}</span
>
<v-btn text @click="preFilterClear()">
<v-btn
v-if="preFilterMode.clearable"
text
@click="preFilterClear()"
>
<v-icon>$clear</v-icon>
</v-btn>
</div>

View File

@@ -7,7 +7,7 @@
ref="extensions"
>
</gz-extensions>
<v-row>
<!-- <v-row>
<v-col cols="12">
<gz-pick-list
readonly
@@ -18,7 +18,7 @@
data-cy="clickThru"
></gz-pick-list>
</v-col>
</v-row>
</v-row> -->
<gz-data-table
ref="gzdatatable"
form-key="cust-customer-notes"
@@ -28,6 +28,7 @@
:client-criteria="clientCriteria"
@selection-change="handleSelected"
data-cy="customerNotesTable"
:pre-filter-mode="preFilterMode"
>
</gz-data-table>
</div>
@@ -45,6 +46,13 @@ export default {
this.customerId = parseInt(this.$route.params.customerid);
//REQUIRED NON-OPTIONAL FILTER
this.clientCriteria = this.customerId.toString();
this.preFilterMode = {
icon: "$ayiAddressCard",
id: window.$gz.util.stringToIntOrNull(this.$route.params.customerid),
ayatype: window.$gz.type.Customer,
viz: this.$route.params.customername,
clearable: false
};
this.rights = window.$gz.role.getRights(window.$gz.type.CustomerNote);
window.$gz.eventBus.$on("menu-click", clickHandler);
generateMenu(this);
@@ -57,6 +65,7 @@ export default {
customerId: undefined,
// customername: undefined,
clientCriteria: undefined,
preFilterMode: null,
rights: window.$gz.role.defaultRightsObject(),
ayType: window.$gz.type.CustomerNote,
selectedItems: [],