Merged in bugfix/PMCORE-2657 (pull request #7687)
PMCORE-2657 Approved-by: Rodrigo Quelca <rockoinfo@yahoo.com>
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
2f3cc1abaf
@@ -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;
|
||||
|
||||
@@ -276,6 +276,12 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
/**
|
||||
* update view in component
|
||||
*/
|
||||
updateView(){
|
||||
this.$refs["vueTable"].getData();
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user