index.vm
2.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
$page.setTitle("护航员信息")
<div class="xn-breadcrumb auto xn-width clearfix ">
<ul class="breadcrumb">
<li><a class="icon icon-home_page" href="$railwayLink.setTarget("index")"></a> </li>
<li class="active">护航员信息列表</li>
</ul>
</div>
<div class="xn-main auto xn-width clearfix" ng-controller="DemoController">
<div class="xn-search-many clearfix pt-15" ng-init="searchShow=false">
<form class="form-horizontal xn-form clearfix" role="form" xn-form-validate novalidate name="validateForm">
<div class="xn-input-line clearfix">
<div class="xn-col-md-2"></div>
<div class="xn-col-md-12">
<input class="form-control" ng-model="vm.keyword" name="keyword" style="width: 90%" placeholder="请输入手机号"/>
</div>
<div class="xn-col-md-2">
<button class="btn btn-success btn-sm xn-text-right" ng-click="doSearch()">查询</button>
</div>
</div>
</form>
</div>
<!--搜索部分结束-->
<div class="xn-table-wrap">
<table class="table table-bordered">
<thead>
<tr>
<th class="col-md-2 ">标签名称</th>
<th class="col-md-2 ">类型</th>
<th class="col-md-2 ">描述</th>
<th class="col-md-3 xn-text-center">操作</th>
</tr>
</thead>
<tbody id="tbody">
<tr ng-repeat="tag in tagList" >
<td class="xn-text-left">
{{tag.name}}
</td>
<td class="xn-text-left">
{{tag.type | tagType}}
</td>
<td class="xn-text-left">
{{tag.description}}
</td>
<td class="xn-center">
<div><a class="view-a" ng-click="doEdit(tag.id)">编辑</a> <a class="view-a" ng-click="doDelete(tag.id)">删除</a></div>
</td>
</tr>
<tr ng-if="!vm.isloading && vm.totalCount==0">
<td colspan="6" class="xn-center">无法找到相应的记录</td></tr>
</tbody>
</table>
<div class="clearfix" >
<div class="f-left mt_20 mb_10">共{{vm.totalCount}}条</div>
</div>
<div class="f-right clearfix">
<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 pagination-item" boundary-links="true" previous-text="‹"
next-text="›" first-text="«" last-text="»"></pagination>
</div>
</div>
</div>
<script src="$railwayContent.getURI('dist/scripts/page/demo.js')" ></script>