This commit is contained in:
2020-11-24 17:54:50 +00:00
parent 2e7a3f23ba
commit 6effcda8b6
4 changed files with 31 additions and 11 deletions

View File

@@ -7,6 +7,9 @@
ref="extensions"
>
</gz-extensions>
{{ customername }}
<gz-data-table
ref="gzdatatable"
formKey="customer-note-list"
@@ -31,7 +34,7 @@ const FORM_KEY = "cust-customer-notes";
export default {
created() {
//this.dataListKey = this.$route.params.dataListKey;
this.customername = this.$route.params.customername;
this.customerId = this.$route.params.customerid;
this.rights = window.$gz.role.getRights(window.$gz.type.Customer);
window.$gz.eventBus.$on("menu-click", clickHandler);
@@ -43,6 +46,7 @@ export default {
data() {
return {
customerId: undefined,
customername: undefined,
currentListViewId: 1,
dataListKey: "CustomerNoteDataList",
dataListFilter: "",
@@ -72,7 +76,11 @@ async function clickHandler(menuItem) {
case "new":
m.vm.$router.push({
name: "customer-note-edit",
params: { recordid: 0, customerid: m.vm.customerId }
params: {
recordid: 0,
customerid: m.vm.customerId,
customername: m.vm.customername
}
});
break;
case "extensions":