Report page cache own widget..

This commit is contained in:
Cüneyt Şentürk
2021-06-15 12:37:13 +03:00
parent c005e21738
commit 0bbc31bec4
6 changed files with 49 additions and 14 deletions

View File

@ -30,9 +30,14 @@ const app = new Vue({
form: new Form('report'),
bulk_action: new BulkAction('reports'),
report_fields: '',
reports_total: [],
}
},
created() {
this.reports_total = reports_total;
},
methods: {
onChangeClass(class_name) {
axios.get(url + '/common/reports/fields', {
@ -76,6 +81,15 @@ const app = new Vue({
onChangeReportFields(event) {
this.form = event;
}
},
onRefreshTotal(report_id) {
axios.get(url + '/common/reports/' + report_id + '/clear')
.then(response => {
this.reports_total[report_id] = response.data.data;
})
.catch(error => {
});
},
}
});