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.filters = [];
this.pageId = null; this.pageId = null;
this.page = item.item.id || "MyCases"; this.page = item.item.id || "MyCases";
if (this.$refs["component"] && this.$refs["component"].updateView) {
this.$refs["component"].updateView();
}
} }
}, },
setCounter() { 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() { onResize() {
if (window.innerWidth <= 767) { if (window.innerWidth <= 767) {
this.isOnMobile = true; this.isOnMobile = true;
@@ -257,6 +250,9 @@ export default {
onUpdatePage(page) { onUpdatePage(page) {
this.lastPage = this.page; this.lastPage = this.page;
this.page = page; this.page = page;
if (this.$refs["component"] && this.$refs["component"].updateView) {
this.$refs["component"].updateView();
}
}, },
onUpdateDataCase(data) { onUpdateDataCase(data) {
this.dataCase = data; this.dataCase = data;

View File

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