index.vm 4.2 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="RailwayController">
    $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("volunteerNurse/index")" target="_self">实时数据</a></li>
                <li class="pl_10 pr_30 click-cursor"><a href="$adminLink.setTarget("volunteerNurse/historical")" style="color: #1c1c1c" target="_self">历史数据</a></li>
            </div>
            </br>
            <div align="right">
                <div class="xn-col-md-18">
                </div>
                <div class="xn-col-md-4">
                    <input type="text" class="form-control" placeholder="搜用户" maxlength="20" ng-model="vm.userId"/>
                </div>
                <div class="xn-col-md-2">
                    <button class="btn btn-success btn-sm xn-text-right" ng-click="doSearch()">搜索</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">用户手机号</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="userAttendance in userAttendanceList" style="text-align: center">

                        <td>
                            {{userAttendance.account}}
                        </td>
                        <td>
                            {{userAttendance.lastUpdateTime}}
                        </td>
                        <td>
                            {{userAttendance.trainLineId}}
                        </td>
                        <td>
                            {{userAttendance.trainId}}
                        </td>
                        <td>
                            {{userAttendance.trainGroupId}}
                        </td>
                        <td>
                            {{userAttendance.trainCarriageId}}
                        </td>
                        #*<td>
                            {{userAttendance.currentStation}}
                        </td>
                        <td>
                            {{userAttendance.nextStation}}
                        </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/realTimeData.js')" ></script>