<input style="border-radius:50px ;" type="text" placeholder="部门模糊查询" ng-model="select"/>
<td>{{s.department.name}}</td>
<tr ng-repeat="s in stus|orderBy:px|filter:{name:xmcx}" ng-show="getDname(s.department.name)">
//插入部门查询
$scope.getDname=function(dname){
if($scope.select==undefined||$scope.select==""){
return true;
}
//indexOf查找一个字符串
if(dname.indexOf($scope.select)>-1){
return true;
}
return false;
}
})