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"> <span @click="preFilterNav()" class="text-h5">
{{ preFilterMode.viz }}</span {{ preFilterMode.viz }}</span
> >
<v-btn text @click="preFilterClear()"> <v-btn
v-if="preFilterMode.clearable"
text
@click="preFilterClear()"
>
<v-icon>$clear</v-icon> <v-icon>$clear</v-icon>
</v-btn> </v-btn>
</div> </div>

View File

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