PMCORE-2657

This commit is contained in:
Henry Jordan
2020-12-28 19:02:06 +00:00
parent 8e080147b7
commit f2200ead3c
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>