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.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;
|
||||||
|
|||||||
@@ -276,6 +276,12 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* update view in component
|
||||||
|
*/
|
||||||
|
updateView(){
|
||||||
|
this.$refs["vueTable"].getData();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user