remove: refs #7129 remove console log
This commit is contained in:
parent
9098e63793
commit
72b86c0eec
|
@ -112,7 +112,6 @@ async function search(evt) {
|
|||
isLoading.value = true;
|
||||
const filter = { ...userParams.value };
|
||||
store.userParamsChanged = true;
|
||||
console.log('userParams.value: ', userParams.value);
|
||||
const { params: newParams } = await arrayData.addFilter({ params: userParams.value });
|
||||
userParams.value = newParams;
|
||||
|
||||
|
|
|
@ -74,10 +74,8 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) {
|
|||
};
|
||||
|
||||
let exprFilter;
|
||||
console.log('AQUIII: ', typeof store.userParams, store.userParams);
|
||||
|
||||
let userParams = { ...store.userParams };
|
||||
console.log('AQUIII: ', typeof userParams, userParams);
|
||||
|
||||
if (store?.exprBuilder) {
|
||||
const where = buildFilter(userParams, (param, value) => {
|
||||
|
@ -96,7 +94,6 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) {
|
|||
filter.where = where;
|
||||
const params = { filter };
|
||||
|
||||
console.log('AQUIII: ', typeof userParams, userParams);
|
||||
Object.assign(params, userParams);
|
||||
params.filter.skip = store.skip;
|
||||
|
||||
|
@ -157,18 +154,13 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) {
|
|||
}
|
||||
|
||||
async function addFilter({ filter, params }) {
|
||||
console.log('addFilter params: ', params);
|
||||
if (filter) store.filter = filter;
|
||||
|
||||
console.log('addFilter: ', store.userParams);
|
||||
let userParams = { ...store.userParams, ...params };
|
||||
console.log('addFilter 2: ', userParams, store.userParams);
|
||||
|
||||
userParams = sanitizerParams(userParams, store?.exprBuilder);
|
||||
console.log('addFilter 2.5: ', userParams);
|
||||
|
||||
store.userParams = userParams;
|
||||
console.log('addFilter: 3', store.userParams);
|
||||
arrayDataStore.reset(['skip', 'filter.skip', 'page']);
|
||||
|
||||
await fetch({ append: false });
|
||||
|
@ -184,7 +176,6 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) {
|
|||
|
||||
function sanitizerParams(params, exprBuilder) {
|
||||
for (const param in params) {
|
||||
console.log('param: ', param);
|
||||
if (params[param] === '' || params[param] === null) {
|
||||
delete store.userParams[param];
|
||||
delete params[param];
|
||||
|
|
Loading…
Reference in New Issue