support filter multiple accounts and categories in transaction list page

This commit is contained in:
MaysWind
2024-07-06 22:05:48 +08:00
parent c0cc9b5247
commit 3dd39defc1
13 changed files with 342 additions and 94 deletions
+14
View File
@@ -359,6 +359,20 @@ export function arrayContainsFieldValue(array, fieldName, value) {
return false;
}
export function objectToArray(object) {
const ret = [];
for (let field in object) {
if (!Object.prototype.hasOwnProperty.call(object, field)) {
continue;
}
ret.push(field);
}
return ret;
}
export function categorizedArrayToPlainArray(object) {
const ret = [];