user.vm
5.98 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
$page.setTitle("用户")
<title>用户</title>
<div class="xn-breadcrumb xn-width auto clearfix">
<ul class="breadcrumb">
<li><a class="icon icon-home_page" href="$customizationLink.setTarget("index")"></a></li>
<li class="active">用户</li>
</ul>
</div>
<div class="xn-main auto xn-width xn-sys-default clearfix" ng-controller="UserIndexController" >
<!--搜索部分-->
<div class="xn-search clearfix center">
<form class="col-sm-5 col-sm-offset-3 clearfix" name="searchForm" xn-form-validate novalidate>
<div class="input-group">
<input type="text" class="form-control " name="keyword" ng-model="vm.keyword" placeholder="请输入要查询的" autofocus>
<span class="input-group-addon" ng-click="doSearch()">搜索</span>
</div>
</form>
</div>
<div class="xn-table-wrap " >
<table class="table table-bordered table-striped ">
<thead>
<tr>
<th class="col-sm-2" class="xn-center">头像</th>
<th class="col-sm-2" class="xn-center">账号</th>
<th class="col-sm-1" class="xn-center">姓名</th>
<th class="col-sm-1" class="xn-center">类型</th>
<th class="col-sm-2" class="xn-center">联系方式</th>
<th class="col-sm-2" class="xn-center">免登令牌</th>
<th class="col-sm-1" class="xn-center">操作</th>
</tr>
</thead>
<tbody id="tbody" ng-init="usershow=false" >
<tr ng-repeat="user in pagedResult" ng-class="{'unactive':!user.isActive}">
<td >
<div data-user-id={{user.id}} xn-user-card><img class="xn-user-photo" ng-src="{{user.avatarUrl}}"/></div></td>
<td >
{{user.account}}
</td>
<td>
<div data-user-id={{user.id}} xn-user-card>{{user.name}}</div>
</td>
<td >
{{user.sourceType | userSourceType}}
</td>
<td>
<i class="icon icon-phone"></i>{{user.mobilePhone | mobilePhone }}<br/>
<i class="icon icon-email"></i><a ng-if="user.isActive" href="mailto:{{user.email}}">{{user.email}}</a>
<span ng-if="!user.isActive" >{{user.email}}</span>
</td>
<td>
{{user.ssoToken}}
</td>
<td >
<button class="btn btn-link" ng-click="ssoTokenEdit(user.id)">编辑免登令牌</button>
</td>
</tr>
<tr ng-if="vm.totalCount == 0"><td colspan="12" class="center">无法找到相应的记录</td></tr>
</tbody>
</table>
<div class="clearfix" >
<div class="f-left mt_20 mb_10">共{{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>
<script type="text/ng-template" id="ssotoken.html">
<form class="form-horizontal xn-form clearfix xn-move-listBox-dialog xn-item-ou" role="setSupplier" xn-form-validate
novalidate name="AddProperty">
<div class="modal-header dia_head_bg">
<h3 class="modal-title xn-center">身份验证</h3>
</div>
<div style="position: relative;" class="xn-input-line clearfix">
<div>
<label for="minimumOrderQuantity" class="f-left"
style="line-height: 35px;margin-left: 12px">用户账号:</label>
<input class="form-control f-left" style="width: 190px;margin-left: 3px;margin-top: 3px;"
ng-model="result.userName" placeholder="请输入16位用户账号"> </input>
</div>
<div style="position: absolute;left: 290px;">
<label for="minimumOrderAmount" class="f-left"
style="line-height: 35px;margin-left: 12px">用户密码:</label>
<input class="form-control f-left" style="width: 190px;margin-top: 3px;"
ng-model="result.userPassWord" placeholder="请输入16位用户密码"> </input>
</div>
</div>
<div style="position: relative;" class="xn-input-line clearfix">
<div >
<label for="minimumOrderQuantity" class="f-left"
style="line-height: 35px;margin-left: 10px">管理员ID:</label>
<input class="form-control f-left" style="width: 190px;margin-left: 3px;margin-top: 3px;"
ng-model="result.adminId"> </input>
</div>
<div style="position: absolute;left: 290px;">
<label for="minimumOrderQuantity" class="f-left"
style="line-height: 35px;margin-left: 22px">等级ID:</label>
<input class="form-control f-left" style="width: 190px;margin-left: 3px;margin-top: 3px;"
ng-model="result.levelId" > </input>
</div>
</div>
<div style="position: relative;" class="xn-input-line clearfix">
<div>
<label for="minimumOrderAmount" class="f-left"
style="line-height: 35px;margin-left: 12px">免登令牌:{{result.ssoToken}}</label>
</div>
</div>
<div class="modal-footer">
<a ng-click="doSave()" class="btn btn-default ">保存</a>
<a ng-click="clean()" class="btn btn-default ">返回</a>
</div>
</form>
</script>
<script type="text/javascript" src="$customizationContent.getURI('dist/scripts/user.js')"></script>