|
|
@@ -34,31 +34,29 @@
|
|
|
<th width="100px;">用户名称</th>
|
|
|
<th width="40px;"></th>
|
|
|
</thead>
|
|
|
- <tbody>
|
|
|
+ <tbody ng-if="thisUser.sys">
|
|
|
<!-- 当前用户是管理员时 -->
|
|
|
- <div style="overflow-y:scroll; width:100%;max-height:500px" ng-if="thisUser.sys">
|
|
|
- <tr ng-repeat="user in userinfos| filter: keyword" ng-if="!user.sys">
|
|
|
- <td width="80px;">{{user.userUU}}</td>
|
|
|
- <td width="100px;">{{user.userName}}</td>
|
|
|
- <td width="40px;" style="text-align: center"><input ng-model="user.transfer" name="checkbox" ng-click="checkOne(user)" ng-checked="user.checked" type="checkbox"></td>
|
|
|
- </tr>
|
|
|
- </div>
|
|
|
+ <tr ng-repeat="user in userinfos| filter: keyword" style="overflow-y:scroll; width:100%;max-height:500px" ng-if="!user.sys">
|
|
|
+ <td width="80px;">{{user.userUU}}</td>
|
|
|
+ <td width="100px;">{{user.userName}}</td>
|
|
|
+ <td width="40px;" style="text-align: center"><input ng-model="user.transfer" name="checkbox" ng-click="checkOne(user)" ng-checked="user.checked" type="checkbox" title="选择"></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ <tbody ng-if="!thisUser.sys && thisUser.transfer">
|
|
|
<!-- 当前用户是被管理员转移权限时 -->
|
|
|
- <div style="overflow-y:scroll; width:100%;max-height:500px" ng-if="!thisUser.sys && thisUser.transfer">
|
|
|
- <tr ng-repeat="user in userinfos| filter: keyword" ng-if="thisUser.userUU != user.userUU && !user.sys">
|
|
|
- <td width="80px;">{{user.userUU}}</td>
|
|
|
- <td width="100px;">{{user.userName}}</td>
|
|
|
- <td width="40px;" style="text-align: center"><input ng-model="user.transfer" name="checkbox" ng-click="checkOne(user)" ng-checked="user.checked" type="radio"></td>
|
|
|
- </tr>
|
|
|
- </div>
|
|
|
- <!-- 当前用户是非管理员,但有权限时 -->
|
|
|
- <div style="overflow-y:scroll; width:100%;max-height:500px" ng-if="!thisUser.sys && !thisUser.transfer">
|
|
|
- <tr ng-repeat="user in userinfos| filter: keyword" ng-if="!user.distribute && !user.sys">
|
|
|
- <td width="80px;">{{user.userUU}}</td>
|
|
|
- <td width="100px;">{{user.userName}}</td>
|
|
|
- <td width="40px;" style="text-align: center"><input ng-model="user.distribute" name="distribute" ng-click="checkOne(user)" ng-checked="user.checked" type="radio"></td>
|
|
|
- </tr>
|
|
|
- </div>
|
|
|
+ <tr ng-repeat="user in userinfos| filter: keyword" ng-if="!user.sys">
|
|
|
+ <td width="80px;">{{user.userUU}}</td>
|
|
|
+ <td width="100px;">{{user.userName}}</td>
|
|
|
+ <td width="40px;" style="text-align: center"><input ng-model="user.transfer" name="checkbox" ng-click="checkOne(user)" ng-checked="user.checked" type="radio" title="选择"></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ <tbody ng-if="!thisUser.sys && !thisUser.transfer">
|
|
|
+ <!-- 当前用户是非管理员,但有查看权限时 -->
|
|
|
+ <tr ng-repeat="user in userinfos| filter: keyword" ng-if="!user.distribute && !user.sys">
|
|
|
+ <td width="80px;">{{user.userUU}}</td>
|
|
|
+ <td width="100px;">{{user.userName}}</td>
|
|
|
+ <td width="40px;" style="text-align: center"><input ng-model="user.distribute" name="distribute" ng-click="checkOne(user)" ng-checked="user.checked" type="radio" title="选择"></td>
|
|
|
+ </tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|