add parts of statistics ui

This commit is contained in:
MaysWind
2021-01-21 00:55:05 +08:00
parent 1f829f0225
commit 6f4bacd544
14 changed files with 468 additions and 16 deletions
+13
View File
@@ -185,6 +185,19 @@ export default {
return axios.get('v1/overviews/transaction.json' + (queryParams.length ? '?query=' + queryParams.join('|') : ''));
},
getTransactionStatistics: ({ startTime, endTime }) => {
const queryParams = [];
if (startTime) {
queryParams.push(`start_time=${startTime}`);
}
if (endTime) {
queryParams.push(`end_time=${endTime}`);
}
return axios.get('v1/statistics/transaction.json' + (queryParams.length ? '?' + queryParams.join('&') : ''));
},
getAllAccounts: ({ visibleOnly }) => {
return axios.get('v1/accounts/list.json?visible_only=' + !!visibleOnly);
},