This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<template>
|
||||
<div>
|
||||
<div v-if="objectType && objectId" class="mb-6">
|
||||
<!-- <div v-if="objectType && objectId" class="mb-6">
|
||||
<v-icon data-cy="clickThru" @click="navToTarget()" large>{{
|
||||
iconForType()
|
||||
}}</v-icon
|
||||
><span @click="navToTarget()" class="text-h5"> {{ name }}</span>
|
||||
</div>
|
||||
</div> -->
|
||||
<gz-report-selector ref="reportSelector"></gz-report-selector>
|
||||
<gz-extensions
|
||||
:aya-type="ayType"
|
||||
@@ -23,6 +23,8 @@
|
||||
:rid-column-openable="false"
|
||||
@selection-change="handleSelected"
|
||||
data-cy="serviceBanksTable"
|
||||
:pre-filter-mode="preFilterMode"
|
||||
@clear-pre-filter="clearPreFilter"
|
||||
>
|
||||
</gz-data-table>
|
||||
</div>
|
||||
@@ -45,6 +47,14 @@ export default {
|
||||
if (vm.objectId && vm.objectId != 0 && vm.objectType) {
|
||||
//OBJECTID,AYATYPE
|
||||
vm.clientCriteria = `${vm.objectId},${vm.objectType}`;
|
||||
|
||||
vm.preFilterMode = {
|
||||
icon: vm.$route.params.icon,
|
||||
id: vm.objectId,
|
||||
ayatype: vm.objectType,
|
||||
viz: vm.$route.params.viz,
|
||||
clearable: true
|
||||
};
|
||||
}
|
||||
|
||||
generateMenu(vm);
|
||||
@@ -59,28 +69,30 @@ export default {
|
||||
selectedItems: [],
|
||||
reload: false,
|
||||
clientCriteria: undefined,
|
||||
preFilterMode: null,
|
||||
objectId: null,
|
||||
objectType: null,
|
||||
name: null
|
||||
};
|
||||
},
|
||||
// computed: {
|
||||
// iconForType() {
|
||||
// return window.$gz.util.iconForType(this.objectType);
|
||||
// }
|
||||
// },
|
||||
|
||||
methods: {
|
||||
navToTarget: function() {
|
||||
window.$gz.eventBus.$emit("openobject", {
|
||||
type: this.objectType,
|
||||
id: this.objectId
|
||||
});
|
||||
},
|
||||
// navToTarget: function() {
|
||||
// window.$gz.eventBus.$emit("openobject", {
|
||||
// type: this.objectType,
|
||||
// id: this.objectId
|
||||
// });
|
||||
// },
|
||||
handleSelected(selected) {
|
||||
this.selectedItems = selected;
|
||||
},
|
||||
iconForType() {
|
||||
return window.$gz.util.iconForType(this.objectType, 10);
|
||||
// iconForType() {
|
||||
// return window.$gz.util.iconForType(this.objectType, 10);
|
||||
// },
|
||||
clearPreFilter() {
|
||||
this.clientCriteria = null;
|
||||
this.preFilterMode = null;
|
||||
this.reload = !this.reload;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -7,18 +7,6 @@
|
||||
ref="extensions"
|
||||
>
|
||||
</gz-extensions>
|
||||
<!-- <v-row>
|
||||
<v-col cols="12">
|
||||
<gz-pick-list
|
||||
readonly
|
||||
v-model="customerId"
|
||||
:aya-type="ayaTypes().Customer"
|
||||
:show-edit-icon="true"
|
||||
:label="$ay.t('Customer')"
|
||||
data-cy="clickThru"
|
||||
></gz-pick-list>
|
||||
</v-col>
|
||||
</v-row> -->
|
||||
<gz-data-table
|
||||
ref="gzdatatable"
|
||||
form-key="cust-customer-notes"
|
||||
|
||||
@@ -925,7 +925,9 @@ export default {
|
||||
name: "service-banks",
|
||||
params: {
|
||||
objectType: window.$gz.type.Customer,
|
||||
objectId: this.$route.params.recordid
|
||||
objectId: this.$route.params.recordid,
|
||||
viz: this.obj.name,
|
||||
icon: "$ayiAddressCard"
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -829,7 +829,9 @@ export default {
|
||||
name: "service-banks",
|
||||
params: {
|
||||
objectType: window.$gz.type.HeadOffice,
|
||||
objectId: this.$route.params.recordid
|
||||
objectId: this.$route.params.recordid,
|
||||
viz: this.obj.name,
|
||||
icon: "$ayiSitemap"
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -1320,7 +1322,7 @@ function generateMenu(vm) {
|
||||
let menuOptions = {
|
||||
isMain: false,
|
||||
readOnly: vm.formState.readOnly,
|
||||
icon: "$ayiAddressCard",
|
||||
icon: "$ayiSitemap",
|
||||
title: "HeadOffice",
|
||||
helpUrl: "head-offices",
|
||||
formData: {
|
||||
|
||||
@@ -929,7 +929,9 @@ export default {
|
||||
name: "service-banks",
|
||||
params: {
|
||||
objectType: window.$gz.type.Unit,
|
||||
objectId: this.$route.params.recordid
|
||||
objectId: this.$route.params.recordid,
|
||||
viz: this.obj.serial,
|
||||
icon: "$ayiFan"
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user