calendar done

This commit is contained in:
Alexandro Uc Santos
2024-07-13 20:03:44 -06:00
parent a0032b26c1
commit 9cf51b9650
16 changed files with 255 additions and 70 deletions

View File

@@ -211,7 +211,7 @@ export const useCompanyStore = defineStore('company', () => {
}
}
const getBudgetsCompany = async(filterQuery, reload = false) => {
const getBudgetsCompany = async(filterQuery, reload = false) => { //here
let filterArr = Object.values(filterQuery);
let cleanfilterArr = filterArr.filter(n=>n);
@@ -222,7 +222,7 @@ export const useCompanyStore = defineStore('company', () => {
if(budgets.value.length <= 0 || reload === true) {
try {
const data = await getBudgets(filterStr + '&$sort%5BcreatedAt%5D=-1');
const data = await getBudgets(filterStr);
console.log(data.total);
if(data.total > 0) {
budgets.value = data.data;