index.vm
4.06 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
69
70
71
72
73
74
75
76
77
78
79
80
$page.setTitle("布岗权限分组信息")
<div class="xn-breadcrumb auto xn-width clearfix ">
<ul class="breadcrumb">
<li><a class="icon icon-home_page" href="$adminLink.setTarget("postPosition/index")"></a> </li>
<li class="active">布岗权限分组列表</li>
</ul>
</div>
<div class="xn-breadcrumb xn-width auto clearfix ware-content " ng-controller="PostPositionController">
$control.setTemplate("admin:settingnav")
<div class="main-side">
<div class="nav-pills clearfix rightTitle">
<li class="pl_10 pr_30 click-cursor nav_li-active"><a href="$adminLink.setTarget("postPosition/index")" target="_self">布岗权限分组列表</a></li>
</div>
</br>
<div class="xn-search-many clearfix pt-15" >
<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-10">
<div class="item f-left mt-5"><label class="font-light">权限名:</label></div>
<div class="xn-col-md-10 f-left">
<input type="text" class="form-control" placeholder="搜权限名" maxlength="20" ng-model="vm.name"/>
</div>
</div>
#*<div class="xn-col-md-10">
<div class="item f-left mt-5"><label class="font-light">线路号:</label></div>
<div class="xn-col-md-10 f-left">
<div name="commodityCategory" xn-multiple-select-tree ng-model="selectedCategoryList" select-data="allCategory" name="category" ></div>
</div>
</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>
<button class="btn btn-normal btn-primary f-right mt-5 mb-10" ng-click="doCreate()" >创建权限</button>
<div class="xn-table-wrap" style="">
<table class="table table-bordered">
<thead>
<tr>
<th class="col-md-1 ">权限名</th>
<th class="col-md-1 ">线路</th>
<th style="text-align: center" width="20%">操作</th>
</tr>
</thead>
<tbody id="tbody">
<tr ng-repeat="postPosition in postPositionList" >
<td class="xn-text-left">
{{postPosition.name}}
</td>
<td class="xn-text-left xn-upload-list">
{{postPosition.lineName}}
</td>
<td class="xn-text-center" width="20%">
<button class="btn-link" ng-click="doEdit(postPosition.id)">编辑</button>
<button class="btn-link" ng-click="doDelete(postPosition.id)">删除</button>
</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="‹" next-text="›" first-text="«" last-text="»">
</pagination>
</div>
</div>
</div>
</div>
<script src="$adminContent.getURI('dist/scripts/page/postPosition.js')" ></script>