|
@@ -0,0 +1,77 @@
|
|
|
|
|
+<!--添加已注册用户 ,即绑定用户到企业-->
|
|
|
|
|
+<style>
|
|
|
|
|
+ .userinfo{
|
|
|
|
|
+ margin-top:20px;
|
|
|
|
|
+ margin-left:60px;
|
|
|
|
|
+ width:450px;
|
|
|
|
|
+ }
|
|
|
|
|
+</style>
|
|
|
|
|
+
|
|
|
|
|
+<div class="modal-header">
|
|
|
|
|
+ <div class="row">
|
|
|
|
|
+ <h3 class="modal-title">
|
|
|
|
|
+
|
|
|
|
|
+ <i class="fa fa-user-plus fa-fw"></i> 添加已注册用户
|
|
|
|
|
+ <button style=" padding-right:20px; " type="button" class="close" data-dismiss="alert" ng-click="cancel()" aria-label="Close">
|
|
|
|
|
+ <span aria-hidden="true">×</span>
|
|
|
|
|
+ </button>
|
|
|
|
|
+ </h3>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</div>
|
|
|
|
|
+
|
|
|
|
|
+<div class="modal-body">
|
|
|
|
|
+ <form class="form-inline" name="searchForm">
|
|
|
|
|
+ <div class="form-group" style="padding-left:60px; ">
|
|
|
|
|
+ <label>查找用户:</label>
|
|
|
|
|
+ <input
|
|
|
|
|
+ style="width: 300px;" type="text" class="form-control"
|
|
|
|
|
+ ng-model="keyWord" placeholder="请输入UU号、手机号或邮箱" required/> <span> <a
|
|
|
|
|
+ class="btn btn-default" ng-click="searchUser(keyWord)" ng-disabled="searchForm.$invalid"> <i class="fa fa-search"></i> 查找
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </form>
|
|
|
|
|
+
|
|
|
|
|
+ <div ng-show="searching&&searchSuccess">
|
|
|
|
|
+ <table class="table table-bordered table-striped userinfo">
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td>UU:</td>
|
|
|
|
|
+ <td>{{user.userUU}}</td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td>姓名:</td>
|
|
|
|
|
+ <td>{{user.userName}}</td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td>性别:</td>
|
|
|
|
|
+ <td>{{user.userSex == 'M' ? '男' : '女'}}</td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td>电话:</td>
|
|
|
|
|
+ <td>{{user.userTel}}</td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td>邮箱:</td>
|
|
|
|
|
+ <td>{{user.userEmail}}</td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ </table>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div ng-show="searching && searchFailed" align="center" style="color:red; margin-top:20px;">
|
|
|
|
|
+ <span>您查找的用户不存在!</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div ng-show="searching && reBindError" align="center" style="color:red; margin-top:20px;">
|
|
|
|
|
+ <span>该用户已绑定到当前企业,不可重复绑定!</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div ng-show="searching && illegalError" align="center" style="color:red; margin-top:20px;">
|
|
|
|
|
+ <span>不可对自己进行绑定!</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div ng-show="searching && bindSuccess" align="center" style="color:red; margin-top:20px;">
|
|
|
|
|
+ <span>用户({{user.userName}})绑定成功!</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</div>
|
|
|
|
|
+
|
|
|
|
|
+<div class="modal-footer">
|
|
|
|
|
+ <button class="btn btn-primary" ng-disabled="okDisabled" ng-show="searchSuccess" ng-click="ok()">确认绑定</button>
|
|
|
|
|
+ <button class="btn btn-warning" ng-click="cancel()" type="button">取消</button>
|
|
|
|
|
+</div>
|
|
|
|
|
+
|