Right in the middle of conversion, not compilable yet
This commit is contained in:
@@ -42,7 +42,7 @@ export default {
|
||||
);
|
||||
|
||||
if (vm.objectId && vm.objectId != 0 && vm.objectType) {
|
||||
//pre-filter
|
||||
//DYNAMIC FILTER
|
||||
vm.metaView = JSON.stringify([
|
||||
{
|
||||
fld: "metaservicebankobjectid",
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
const FORM_KEY = "adm-users";
|
||||
export default {
|
||||
created() {
|
||||
//Inside users only
|
||||
//STATIC FILTER Inside users only
|
||||
this.metaView = JSON.stringify([
|
||||
{
|
||||
fld: "usertype",
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
:dataListSort="dataListSort"
|
||||
:showSelect="rights.read"
|
||||
:reload="reload"
|
||||
:metaView="metaView"
|
||||
:clientCriteria="clientCriteria"
|
||||
v-on:selection-change="handleSelected"
|
||||
data-cy="customerNotesTable"
|
||||
>
|
||||
@@ -31,18 +31,12 @@
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
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 = parseInt(this.$route.params.customerid);
|
||||
this.metaView = JSON.stringify([
|
||||
{
|
||||
fld: "metacustomer",
|
||||
filter: { items: [{ op: "=", value: this.customerId }] }
|
||||
}
|
||||
]);
|
||||
|
||||
//MIXED STATIC But with provided criteria FILTER
|
||||
this.clientCriteria = this.customerId.toString();
|
||||
this.rights = window.$gz.role.getRights(window.$gz.type.CustomerNote);
|
||||
window.$gz.eventBus.$on("menu-click", clickHandler);
|
||||
generateMenu(this);
|
||||
@@ -58,7 +52,7 @@ export default {
|
||||
dataListKey: "CustomerNoteDataList",
|
||||
dataListFilter: "",
|
||||
dataListSort: "",
|
||||
metaView: undefined,
|
||||
clientCriteria: undefined,
|
||||
rights: window.$gz.role.defaultRightsObject(),
|
||||
ayType: window.$gz.type.CustomerNote,
|
||||
selectedItems: [],
|
||||
|
||||
Reference in New Issue
Block a user