refs #6694 feat change request params filters
This commit is contained in:
parent
d8e7f3acaa
commit
c584eaf723
|
@ -67,10 +67,10 @@ function showLabel(data) {
|
||||||
return `${data.code} - ${data.town}(${data.province}), ${data.country}`;
|
return `${data.code} - ${data.town}(${data.province}), ${data.country}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function locationFilter(value) {
|
function locationFilter(search) {
|
||||||
let where = { limit: 30 };
|
let where = { limit: 30 };
|
||||||
const params = { value };
|
const params = { search };
|
||||||
postcodesRef.value.fetch({ where: Object.assign(where, params) });
|
postcodesRef.value.fetch({ where, args: params });
|
||||||
}
|
}
|
||||||
function handleFetch( data) {
|
function handleFetch( data) {
|
||||||
postcodesOptions.value = data;
|
postcodesOptions.value = data;
|
||||||
|
|
Loading…
Reference in New Issue