This commit is contained in:
2020-11-24 19:59:20 +00:00
parent 677690a78a
commit 58706f6bc3
2 changed files with 16 additions and 6 deletions

View File

@@ -7,16 +7,15 @@
ref="extensions"
>
</gz-extensions>
{{ customername }}
<gz-data-table
ref="gzdatatable"
formKey="customer-note-list"
formKey="cust-customer-notes"
:dataListKey="dataListKey"
:dataListFilter="dataListFilter"
:dataListSort="dataListSort"
:showSelect="rights.change"
:metaView="metaView"
v-on:selection-change="handleSelected"
data-cy="customerNotesTable"
>
@@ -31,11 +30,18 @@
////////////////////////////////////////////////////////////////////////////////////////////////////////////
const FORM_KEY = "cust-customer-notes";
//"[{\"fld\":\"widgetname\",\"filter\":{\"items\":[{\"op\":\"%-\",\"value\":\"Awesome\"}]}},{\"fld\":\"widgetserial\"},{\"fld\":\"widgetdollaramount\"},{\"fld\":\"widgetusertype\",\"filter\":{\"items\":[{\"op\":\"=\",\"value\":1}]}},{\"fld\":\"widgetstartdate\"},{\"fld\":\"widgetactive\"},{\"fld\":\"username\",\"filter\":{\"items\":[{\"op\":\"=\",\"value\":\"aya\"}]}},{\"fld\":\"widgettags\"},{\"fld\":\"widgetcustom1\"},{\"fld\":\"widgetcustom2\"}]"
export default {
created() {
this.customername = this.$route.params.customername;
this.customerId = this.$route.params.customerid;
this.metaView = JSON.stringify([
{
fld: "metacustomer",
filter: { items: [{ op: "=", value: this.customerId }] }
}
]);
this.rights = window.$gz.role.getRights(window.$gz.type.Customer);
window.$gz.eventBus.$on("menu-click", clickHandler);
generateMenu(this);
@@ -51,6 +57,7 @@ export default {
dataListKey: "CustomerNoteDataList",
dataListFilter: "",
dataListSort: "",
metaView: undefined,
rights: window.$gz.role.defaultRightsObject(),
ayType: window.$gz.type.CustomerNote,
selectedItems: []
@@ -62,7 +69,7 @@ export default {
}
}
};
//"[{\"fld\": \"widgetname\",\"filter\": {\"any\":false,\"items\": [{\"op\": \"%-\",\"value\": \"Awesome\"}]}},{\"fld\":\"widgetserial\"},{\"fld\":\"widgetdollaramount\"},{\"fld\":\"widgetusertype\"},{\"fld\":\"widgetstartdate\"},{\"fld\":\"widgetactive\"},{\"fld\":\"username\"},{\"fld\":\"widgettags\"},{\"fld\":\"widgetcustom1\"},{\"fld\":\"widgetcustom2\"}]"
/////////////////////////////
//
//