fixed zone treeview bugs
This commit is contained in:
parent
7986405a72
commit
af6a9d8022
|
@ -5,7 +5,7 @@
|
||||||
<vn-icon icon="keyboard_arrow_up" ng-if="item.childs.length"
|
<vn-icon icon="keyboard_arrow_up" ng-if="item.childs.length"
|
||||||
ng-click="$ctrl.toggle(item, $event)">
|
ng-click="$ctrl.toggle(item, $event)">
|
||||||
</vn-icon>
|
</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)">
|
ng-click="$ctrl.toggle(item, $event)">
|
||||||
</vn-icon>
|
</vn-icon>
|
||||||
</vn-auto>
|
</vn-auto>
|
||||||
|
|
|
@ -20,6 +20,7 @@ export default class Treeview extends Component {
|
||||||
refresh() {
|
refresh() {
|
||||||
this.model.refresh().then(() => {
|
this.model.refresh().then(() => {
|
||||||
this.data = this.model.data;
|
this.data = this.model.data;
|
||||||
|
console.log(this.data);
|
||||||
this.repaintAll();
|
this.repaintAll();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ export default class Controller {
|
||||||
case 'search':
|
case 'search':
|
||||||
return /^\d+$/.test(value)
|
return /^\d+$/.test(value)
|
||||||
? {id: value}
|
? {id: value}
|
||||||
: {name: {regexp: value}};
|
: {name: {like: `%${value}%`}};
|
||||||
case 'warehouseFk':
|
case 'warehouseFk':
|
||||||
case 'agencyModeFk':
|
case 'agencyModeFk':
|
||||||
return {[param]: value};
|
return {[param]: value};
|
||||||
|
|
Loading…
Reference in New Issue