Merged in bugfix/PMCORE-2657 (pull request #7687)

PMCORE-2657

Approved-by: Rodrigo Quelca <rockoinfo@yahoo.com>
This commit is contained in:
Henry Jonathan Quispe Quispe
2021-01-07 13:42:37 +00:00
committed by Julio Cesar Laura Avendaño
2 changed files with 12 additions and 10 deletions

View File

@@ -156,6 +156,9 @@ export default {
this.filters = [];
this.pageId = null;
this.page = item.item.id || "MyCases";
if (this.$refs["component"] && this.$refs["component"].updateView) {
this.$refs["component"].updateView();
}
}
},
setCounter() {
@@ -180,16 +183,6 @@ export default {
});
}
},
/**
* Update page component
*/
updatePage(data, page, callback) {
this.dataCase = data;
this.page = page;
if (this.$refs["component"] && this.$refs["component"].update) {
this.$refs["component"].update(data, callback);
}
},
onResize() {
if (window.innerWidth <= 767) {
this.isOnMobile = true;
@@ -257,6 +250,9 @@ export default {
onUpdatePage(page) {
this.lastPage = this.page;
this.page = page;
if (this.$refs["component"] && this.$refs["component"].updateView) {
this.$refs["component"].updateView();
}
},
onUpdateDataCase(data) {
this.dataCase = data;

View File

@@ -276,6 +276,12 @@ export default {
});
}
},
/**
* update view in component
*/
updateView(){
this.$refs["vueTable"].getData();
}
},
};
</script>