我想要http://ee.github.io/angular-ui-tree-filter/对现有树根结构的过滤类型。
我尝试过并且能够将bt过滤出过滤器作用域列表,但未显示。我要显示的是什么,但是没有重点关注,应该满足谁的搜索条件。
loadTableTasks() {
this.taskObject.entityId = this.entityId;
this.taskObject.projectId = this.projectId;
this.taskObject.sortableField = "name";
this.taskObject.searchColumn = "taskTypes";
this.taskObject.searchTerm = this.selectedTaskTypesName;
let data = JSON.stringify(this.taskObject);
this.taskService.dataParam = data;
this.getTasks(data);
this.taskComponent.reloadTree();
}
getTasks(data) {
this.objectList = [];
this.taskService
.viewEditableTasks(
data,
this.tokenService.getToken().userId,
this.selectedTaskTypesName
)
.subscribe(res => {
if (!res.error) {
this.objectList = res.response.tasks;
} else {
this.toastr.error("Some error occured.", "Error!");
}
});
}