fixed zone treeview bugs

This commit is contained in:
Joan Sanchez 2019-02-04 12:14:07 +01:00
parent 7986405a72
commit af6a9d8022
3 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@
<vn-icon icon="keyboard_arrow_up" ng-if="item.childs.length"
ng-click="$ctrl.toggle(item, $event)">
</vn-icon>
<vn-icon icon="keyboard_arrow_down" ng-if="!item.childs"
<vn-icon icon="keyboard_arrow_down" ng-if="item.sons > 0 && !item.childs"
ng-click="$ctrl.toggle(item, $event)">
</vn-icon>
</vn-auto>

View File

@ -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();
});
}

View File

@ -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};