index.vm 6.12 KB
$page.setTitle("志愿护行")


<div class="xn-breadcrumb auto  xn-width clearfix ">
    <ul class="breadcrumb">
        <li><a class="icon icon-home_page" href="$adminLink.setTarget("volunteerNurse/index")"></a> </li>
        <li class="active">用户数据</li>
    </ul>
</div>

<div class="xn-breadcrumb xn-width auto clearfix ware-content " ng-controller="UserController">
    $control.setTemplate("admin:settingnav")

    <div class="main-side">
        <div>
            <div class="nav-pills clearfix rightTitle">
                <li class="pl_10 pr_30 click-cursor nav_li-active"><a href="$adminLink.setTarget("user/index")" target="_self">用户数据</a></li>
            </div>
            </br>
            <div align="right">
                <div class="xn-col-md-0">
                    <input type="text" class="form-control" placeholder="工号" maxlength="20" ng-model="vm.employeeNumber"/>
                </div>
                <div class="xn-col-md-5">
                    <div class="item f-left mt-5"><label class="font-light">开始时间:</label></div>
                    <div class="input-group openFData">
                        <input type="text" class="form-control" id="fromDate" ng-model="vm.createTime" name="createTime"
                               datepicker-popup="yyyy-MM-dd" is-open="fromDate1" max-date="vm.endTime" datepicker-options="dateOptions"
                               date-disabled="disabled(date, mode)"  close-text="关闭" current-text="今天"  clear-text="清除" placeholder="开始时间">
                        <span class="input-group-btn">
                                    <button class="btn btn-normal" type="button" ng-click="openFDate($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                                </span>
                    </div>
                </div>
                <div class="xn-col-md-5">
                    <div class="item f-left mt-5"><label class="font-light">截至时间:</label></div>
                    <div class="input-group openFData">
                        <input type="text" class="form-control" id="fromDate" ng-model="vm.endTime" name="endTime"
                               datepicker-popup="yyyy-MM-dd" is-open="fromDate2" min-date="vm.createTime" datepicker-options="dateOptions"
                               date-disabled="disabled(date, mode)"  close-text="关闭" current-text="今天"  clear-text="清除" placeholder="截至时间">
                        <span class="input-group-btn">
                                    <button class="btn btn-normal" type="button" ng-click="openTDate($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                                </span>
                    </div>
                </div>
                <div class="xn-col-md-2">
                    <button class="btn btn-success btn-sm xn-text" ng-click="doSearch()">搜索</button>
                </div>
                <div class="xn-col-md-0">
                    <button class="btn btn-success btn-sm xn-text-right" ng-click="doExport()">导出</button>
                </div>
            </div>
            </br>
            </br>
        </div>
        <form class="form-horizontal xn-form">
            <div class="xn-table-wrap">
                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <th style="text-align: center">用户ID</th>
                        <th style="text-align: center">姓名</th>
                        <th style="text-align: center">工号</th>
                        <th style="text-align: center">所在单位/部门</th>
                        <th style="text-align: center">总公益时间(分)</th>
                        <th style="text-align: center">总在岗次数</th>
                        <th style="text-align: center">政治面貌</th>
                        <th style="text-align: center">操作</th>
                    </tr>
                    </thead>
                    <tbody id="tbody">
                    <tr ng-repeat="user in userList" style="text-align: center">

                        <td>
                            {{user.id}}
                        </td>
                        <td>
                            {{user.name}}
                        </td>
                        <td>
                            {{user.employeeNumber}}
                        </td>
                        <td>
                            {{user.companyName}}
                        </td>
                        <td>
                            {{user.escortTime}}
                        </td>
                        <td>
                            {{user.escortCount}}
                        </td>
                        <td ng-if="user.isPartyMember == true">
                            党员
                        </td>
                        <td ng-if="user.isPartyMember != true">
                            群众
                        </td>
                        <td ng-if="user.isPartyMember != true">
                            <a href="$adminLink.setTarget("user/open")?id={{user.id}}&begin={{vm.laidBegin}}&end={{vm.laidEnd}}" target="_self">查看详情</a>
                        </td>
                    </tr>
                    <tr ng-if="!vm.totalCount || vm.totalCount==0">
                        <td colspan="10" class="xn-center">无法找到相应的记录</td></tr>
                    </tbody>
                </table>
                <div class="xn-text-center">
                    <div class="f-left mt-20 mb-10 ng-binding">共{{vm.totalCount}}条</div>
                    <pagination  ng-show="vm.totalCount>vm.pageSize"  ng-change="getList()"  max-size="maxPageSize" total-items="vm.totalCount"
                                 ng-model="vm.pageNumber" items-per-page="vm.pageSize"  class="pagination-sm"  boundary-links="true"
                                 previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;">
                    </pagination>
                </div>
            </div>
        </form>
    </div>
</div>

<script src="$adminContent.getURI('dist/scripts/page/user.js')" ></script>