From af6a9d8022db8af4a01d8d28af1f45398ad858a5 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Mon, 4 Feb 2019 12:14:07 +0100 Subject: [PATCH] fixed zone treeview bugs --- front/core/components/treeview/child.html | 2 +- front/core/components/treeview/index.js | 1 + modules/agency/front/index/index.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/front/core/components/treeview/child.html b/front/core/components/treeview/child.html index 437e7ca7d..af5fe128b 100644 --- a/front/core/components/treeview/child.html +++ b/front/core/components/treeview/child.html @@ -5,7 +5,7 @@ - diff --git a/front/core/components/treeview/index.js b/front/core/components/treeview/index.js index 6449ec450..e732d4347 100644 --- a/front/core/components/treeview/index.js +++ b/front/core/components/treeview/index.js @@ -20,6 +20,7 @@ export default class Treeview extends Component { refresh() { this.model.refresh().then(() => { this.data = this.model.data; + console.log(this.data); this.repaintAll(); }); } diff --git a/modules/agency/front/index/index.js b/modules/agency/front/index/index.js index 6c2d250c5..0958059af 100644 --- a/modules/agency/front/index/index.js +++ b/modules/agency/front/index/index.js @@ -16,7 +16,7 @@ export default class Controller { case 'search': return /^\d+$/.test(value) ? {id: value} - : {name: {regexp: value}}; + : {name: {like: `%${value}%`}}; case 'warehouseFk': case 'agencyModeFk': return {[param]: value};