This commit is contained in:
@@ -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\"}]"
|
||||
/////////////////////////////
|
||||
//
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user