fix: remove FIXME
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
19eb770893
commit
2d8322c6da
|
@ -86,26 +86,12 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) {
|
||||||
|
|
||||||
Object.assign(filter, store.userFilter, exprFilter);
|
Object.assign(filter, store.userFilter, exprFilter);
|
||||||
let where;
|
let where;
|
||||||
//FIXME: ARRAY DATA FALLA AL JUNTAR WHERE'S
|
if (filter?.where || store.filter?.where)
|
||||||
// console.log(
|
where = Object.assign(filter?.where ?? {}, store.filter?.where ?? {});
|
||||||
// 'userParams?.filter?.where: ',
|
|
||||||
// userParams?.filter?.where,
|
|
||||||
// filter?.where,
|
|
||||||
// store.filter?.where
|
|
||||||
// );
|
|
||||||
if ((userParams?.filter?.where, filter?.where || store.filter?.where))
|
|
||||||
where = Object.assign(
|
|
||||||
userParams?.filter?.where ?? {},
|
|
||||||
filter?.where ?? {},
|
|
||||||
store.filter?.where ?? {}
|
|
||||||
);
|
|
||||||
Object.assign(filter, store.filter);
|
Object.assign(filter, store.filter);
|
||||||
filter.where = where;
|
filter.where = where;
|
||||||
// console.log('where: ', where);
|
|
||||||
const params = { filter };
|
const params = { filter };
|
||||||
// console.log('params: ', params);
|
|
||||||
|
|
||||||
delete userParams?.filter;
|
|
||||||
Object.assign(params, userParams);
|
Object.assign(params, userParams);
|
||||||
params.filter.skip = store.skip;
|
params.filter.skip = store.skip;
|
||||||
if (store.order && store.order.length) params.filter.order = store.order;
|
if (store.order && store.order.length) params.filter.order = store.order;
|
||||||
|
|
Loading…
Reference in New Issue