|
|
@@ -113,58 +113,67 @@
|
|
|
<div class="pane-header">
|
|
|
全部用户
|
|
|
<div class="pull-right">
|
|
|
- <a title="新增用户默认密码为111111" ng-show="adding == true" ng-click="addUser()" class="text-simple"><i class="fa fa-user-plus fa-fw"></i>确定添加</a>
|
|
|
+ <a title="新增用户默认密码为111111" ng-show="adding == true" class="btn btn-success btn-sm"
|
|
|
+ ng-disabled="newUserForm.$invalid" ng-click="addUser(newUser)" class="text-simple">
|
|
|
+ <i class="fa fa-user-plus fa-fw"></i>确定添加
|
|
|
+ </a>
|
|
|
<a ng-click="adding = false" ng-show="adding == true" class="text-simple"><i class="fa fa-user-plus fa-fw"></i>取消</a>
|
|
|
<a ng-click="adding = true" ng-show="adding != true" class="text-simple"><i class="fa fa-user-plus fa-fw"></i>添加用户</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="pane-body">
|
|
|
- <table class="block table table-default table-striped"
|
|
|
- ng-table="tableParams">
|
|
|
- <thead>
|
|
|
- <tr class="header">
|
|
|
- <th>姓名</th>
|
|
|
- <th>性别</th>
|
|
|
- <th>身份证号</th>
|
|
|
- <th>UU</th>
|
|
|
- <th>电话</th>
|
|
|
- <th>邮箱</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- <tr ng-show="adding">
|
|
|
- <td class="text-center">
|
|
|
- <input class="form-control input-sm" placeholder="用户名">
|
|
|
- </td>
|
|
|
- <td class="text-center">
|
|
|
- <select class="form-control input-sm">
|
|
|
- <option value="F">女</option>
|
|
|
- <option value="M">男</option>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- <td class="text-center">
|
|
|
- <input class="form-control input-sm" placeholder="身份证号">
|
|
|
- </td>
|
|
|
- <td class="text-center">
|
|
|
- <div style="line-height: 30px;">UU号由系统生成</div>
|
|
|
- </td>
|
|
|
- <td class="text-center">
|
|
|
- <input class="form-control input-sm" placeholder="手机号">
|
|
|
- </td>
|
|
|
- <td class="text-center">
|
|
|
- <input class="form-control input-sm" placeholder="邮箱">
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr ng-repeat="u in $data track by u.id">
|
|
|
- <td class="text-center" ng-bind="::u.userName"></td>
|
|
|
- <td class="text-center" ng-bind="::u.userSex == 'F' ? '女' : '男'"></td>
|
|
|
- <td class="text-center" ng-bind="::u.userIdcode"></td>
|
|
|
- <td class="text-center" ng-bind="::u.userUU"></td>
|
|
|
- <td class="text-center" ng-bind="::u.userTel"></td>
|
|
|
- <td class="text-center" ng-bind="::u.userEmail"></td>
|
|
|
- </tr>
|
|
|
-
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
+ <form name="newUserForm">
|
|
|
+ <table class="block table table-default table-striped"
|
|
|
+ ng-table="tableParams">
|
|
|
+ <thead>
|
|
|
+ <tr class="header">
|
|
|
+ <th>UU</th>
|
|
|
+ <th>姓名</th>
|
|
|
+ <th>性别</th>
|
|
|
+ <th>身份证号</th>
|
|
|
+ <th>电话</th>
|
|
|
+ <th>邮箱</th>
|
|
|
+ <th></th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <tr ng-show="adding">
|
|
|
+ <td class="text-center">
|
|
|
+ <div style="line-height: 30px;">系统生成</div>
|
|
|
+ </td>
|
|
|
+ <td class="text-center">
|
|
|
+ <input ng-model="newUser.userName" class="form-control input-sm" required type="text" placeholder="用户名">
|
|
|
+ </td>
|
|
|
+ <td class="text-center">
|
|
|
+ <select ng-model="newUser.userSex" class="form-control input-sm" ng-init="newUser.userSex='M'">
|
|
|
+ <option value="F">女</option>
|
|
|
+ <option value="M">男</option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ <td class="text-center">
|
|
|
+ <input ng-model="newUser.userIdcode" class="form-control input-sm" type="text" placeholder="身份证号">
|
|
|
+ </td>
|
|
|
+ <td class="text-center" ng-class="{'has-error': userTelError, 'has-success': userTelSuccess}">
|
|
|
+ <input ng-model="newUser.userTel" ng-blur="telValid(newUser.userTel)" required name="newUserTel" class="form-control input-sm" type="text" placeholder="手机号">
|
|
|
+ </td>
|
|
|
+ <td class="text-center" ng-class="{'has-error': userEmailError, 'has-success': userEmailSuccess}">
|
|
|
+ <input ng-model="newUser.userEmail" ng-blur="emailValid(newUser.userEmail)" required name="newUserEmail" class="form-control input-sm" type="text" placeholder="邮箱">
|
|
|
+ </td>
|
|
|
+ <td></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ <tbofy>
|
|
|
+ <tr ng-repeat="u in $data track by u.userUU">
|
|
|
+ <td class="text-center" ng-bind="::u.userUU"></td>
|
|
|
+ <td class="text-center" ng-bind="::u.userName"></td>
|
|
|
+ <td class="text-center" ng-bind="::u.userSex == 'F' ? '女' : '男'"></td>
|
|
|
+ <td class="text-center" ng-bind="::u.userIdcode"></td>
|
|
|
+ <td class="text-center" ng-bind="::u.userTel"></td>
|
|
|
+ <td class="text-center" ng-bind="::u.userEmail"></td>
|
|
|
+ <td class="text-center"><a ng-if="u.userUU != user.userUU" ng-click="removeUser(u.userUU)" title="删除该用户"><i class="fa fa-trash-o fa-lg"></></a></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </form>
|
|
|
</div>
|
|
|
</div>
|