<script type="text/javascript"> $(function () { //全选 $(".Pagingjump-check").click(function () { if (this.checked) { $(this).parents().parents().parents(".tDefault").find(".table-checked").each(function () { this.checked = true; }) } if (!this.checked) { $(this).parents().parents().parents(".tDefault").find(".table-checked").each(function () { this.checked = false; }) } }); }) </script> <div> <div>{{title}}</div> <div> <input type="text" size="30" placeholder="请输入查询条件"> <ul> <li ng-click="PopupSearch()"> <a href="javascript:void(0)" title="查询"> <span>查询</span> </a> </li> </ul> </div> <div> <div> <table> <tr nf-if="columnlist.length>0"> <td> <input type="checkbox" ng-model="checkallvalue" ng-change="checkall()" > </td> <td>序号</td> <td ng-repeat="column in columnlist |orderBy:column.PopupColumnOrder" ng-click="col='{{column.ColumnName}}';" ng-show="{{column.IsPopoupColumn}}">{{column.DisplayColumnName}}</td> </tr> <tr ng-repeat="data in popupdata"> <!--ng-checked--> <td><input type="checkbox" ng-model="data.selected" ng-change="changeChoose(data.selected,data)" ng-checked="isChecked(data)"></td> <td>{{ $index + 1 }}</td> <td ng-repeat="column in columnlist|orderBy:column.PopupColumnOrder" ng-show="{{column.IsPopoupColumn}}" datacolumn="{{column.ColumnName}}">{{data[column.ColumnName]}}</td> </tr> </table> <div> <span>无数据</span> </div> <div ng-if="loading"> <div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> <div></div> </div> </div> </div> <div> <div> <div> <nav> <ul> <li> <input type="text" size="5" value="" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" /> </li> <li> <a ng-click="jump()"> <div data-icon=""></div> </a> </li> </ul> </nav> </div> <div> <span>共0条数据</span> <span>当前第1页/共1页</span> </div> <div> <nav> <ul> <li> <a ng-click="Previous()"> <div data-icon=""></div> </a> </li> <li ng-repeat="page in pageList" ng-class="{active: isActivePage(page)}"> <a ng-click="selectPage(page)">{{ page }}</a> </li> <li> <a ng-click="Next()"> <div data-icon=""></div> </a> </li> </ul> </nav> </div> </div> </div> <div> <div> <ul> <li ng-click="PopupAdd()" ng-if="showAddButton"> <a href="javascript:void(0)" title="新增"> <span>新增</span> </a> </li> </ul> </div> <div> <ul> <li ng-click="PopupRefresh()" ng-if="showRefreshButton"> <a href="javascript:void(0)" title="刷新"> <span>刷新</span> </a> </li> <li ng-click="PopupOK()"> <a href="javascript:void(0)" title="确定"> <span>确定</span> </a> </li> <li ng-click="PopupCancel()"> <a href="javascript:void(0)" title="取消"> <span>取消</span> </a> </li> </ul> </div> </div> </div> </div>
调用: