ywana-core8 0.0.33 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +0 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +0 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +0 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +0 -10
package/package.json
CHANGED
package/src/domain/TablePage.js
CHANGED
@@ -369,21 +369,13 @@ const TableAPI = (url) => {
|
|
369
369
|
all(filters) {
|
370
370
|
let queryParams = "?"
|
371
371
|
if (filters) {
|
372
|
-
|
373
|
-
console.log('filters', filters)
|
374
|
-
|
375
372
|
const filterQuery = Object.keys(filters).reduce((query, key) => {
|
376
|
-
|
377
373
|
const value = filters[key]
|
378
|
-
console.log(value)
|
379
|
-
|
380
374
|
if (typeof (value) === 'boolean') {
|
381
375
|
return query.concat(`${key}=${value}&`)
|
382
|
-
|
383
376
|
} else if (Array.isArray(value)) {
|
384
377
|
const param = value.length === 0 ? '' : value.reduce((param,item) => {
|
385
378
|
param = param.concat(`${key}=${item}&`)
|
386
|
-
console.log(item, param)
|
387
379
|
return param
|
388
380
|
}, "")
|
389
381
|
console.log(param)
|
@@ -392,8 +384,6 @@ const TableAPI = (url) => {
|
|
392
384
|
return query.concat(`${key}=%${filters[key]}%&`)
|
393
385
|
}
|
394
386
|
}, "")
|
395
|
-
|
396
|
-
console.log('filterQuery')
|
397
387
|
queryParams = queryParams.concat(filterQuery)
|
398
388
|
}
|
399
389
|
return http.GET(url + queryParams)
|