Rebuild frontend.

This commit is contained in:
James Cole
2021-02-14 10:43:58 +01:00
parent 993fe3ae0a
commit bfd925fbfe
14 changed files with 226 additions and 47 deletions

View File

@@ -101,10 +101,23 @@ export default {
if (true === value) {
this.getIncome();
}
}
},
start: function () {
if (false === this.loading) {
this.getIncome();
}
},
end: function () {
if (false === this.loading) {
this.getIncome();
}
},
},
methods: {
getIncome() {
this.loading = true;
this.income = [];
this.error=false;
let startStr = this.start.toISOString().split('T')[0];
let endStr = this.end.toISOString().split('T')[0];
axios.get('./api/v1/insight/income/date/basic?start=' + startStr + '&end=' + endStr)