PMCORE-2822: fix table reload

restore update view method

remove console.log
This commit is contained in:
Rodrigo Quelca
2021-02-01 18:24:21 +00:00
parent 890e0cf270
commit a7ce5187ee
4 changed files with 110 additions and 14 deletions

View File

@@ -114,6 +114,9 @@ export default {
}
};
},
created() {
this.initFilters();
},
mounted() {
this.openDefaultCase();
},
@@ -129,6 +132,27 @@ export default {
updated() {},
beforeCreate() {},
methods: {
/**
* Initialize filters
*/
initFilters() {
let params;
if(this.defaultOption) {
params = utils.getAllUrlParams(this.defaultOption);
if (params && params.openapplicationuid) {
this.filters = [
{
fieldId: "caseNumber",
filterVar: "caseNumber",
label: "",
options:[],
value: params.openapplicationuid,
autoShow: false
}
];
}
}
},
/**
* Open a case when the component was mounted
*/
@@ -156,7 +180,7 @@ export default {
autoShow: false
}
],
refresh: true
refresh: false
});
this.$emit("cleanDefaultOption");
}