linkcondition.html 1.1 KB

12345678910111213141516
  1. <div style="padding:3px 0;">
  2. <a ng-class="{ true: 'condition-selected', false: 'condition' }[selected.length == 0 || null == selected]"
  3. ng-click="selected = []">全部</a>
  4. <a style="cursor:pointer" ng-click="transfer()"><i class="glyphicon glyphicon-refresh" title="反选"></i></a>
  5. <table ng-hide="hide">
  6. <tr ng-repeat="row in rowList" ng-show="(!defaultCount || isShowAll || $index==0) && !hide">
  7. <td ng-repeat="item in row">
  8. <a ng-class="{ true: 'condition-selected', false: 'condition' }[isExists(item[valueField])]"
  9. ng-click="onClick(item[valueField])" ng-show="(!defaultCount || isShowAll || $index<limit) && !hide">{{item[textField]}}</a>
  10. </td>
  11. </tr>
  12. </table>
  13. <a ng-hide="!hide" ng-repeat="item in sourceList" ng-class="{ true: 'condition-selected', false: 'condition' }[isExists(item[valueField])]"
  14. ng-click="onClick(item[valueField])" ng-show="(!defaultCount || isShowAll || $index<limit) && hide">{{item[textField]}}</a>
  15. <a ng-show="defaultCount && (sourceList.length > limit)" class="right" ng-click="isShowAll = !isShowAll">{{showText}}</a>
  16. </div>