

<h2>用户账号  </h2>



<div style="width:100%;float:right;">
    <input id="rowcount" type="hidden" value="0" />
    <input id="rowdel" type="hidden" value="" />
    <input type="button" value="添加" ng-click="addChild();" />

    <div id="sublist">

        <table id="sub" class="childTable" style="width:100%" tag="table_admin">
            <tr>
                <th>用户名</th>
                <th>密码</th>
                <th>姓名</th>
                <th>角色</th>
                <th>部门</th>
                <th>是否开启</th>
                <th>操作</th>
            </tr>

            <tr class="hide">
                <td>
                    <div>
                   
                        <input tag='edit' class="admin_text index" type='text' name='UserName' req='true' vad='^[-\w]{2,20}$' />
                    </div>
                </td>


                <td>
                    <div>
                        <input tag='edit' class="admin_text" type='text' name='Password' req='true' vad='^[-\*\w]{2,20}$' />
                    </div>
                </td>


                <td>
                    <div>
                        <input tag='edit' class="admin_text" type='text' name='XingMing' req='true' vad='^[@\w\u4e00-\u9fa5]{2,20}$' />
                    </div>
                </td>

                <td>
                    <div>
                        <select tag='edit' multiple="multiple" id="RoleIds" name="RoleIds" val="{{row.RoleIds}}">
                            <option ng-repeat="r in roles" value="{{r.RoleId}}">{{r.RoleName}}</option>
                        </select>
                    </div>
                </td>

                <td>
                    <div>
                        
                    </div>
                </td>

                <td>
                    <div>
                        <input type="checkbox" id="IsApproved" name="IsApproved" tag="edit" />
                    </div>
                </td>



                <td> <a style="color:blue;" href="javascript:void(0);" class="remove">删除</a></td>

            </tr>
            <tr ng-repeat="row in result" ng-show="result.length">
                <td>
                    <div>
                        <input type="text" name="UserId" ng-model="row.UserId" style="display:none;" />

                        <input tag='edit' class="admin_text index" type='text' name='UserName' req='true' vad='^[-\w]{2,20}$' ng-model="row.UserName" />
                    </div>
                </td>


                <td>
                    <div>
                        <input tag='edit' class="admin_text" type='text' name='Password' req='true' vad='^[-\w\*]{2,20}$' ng-model="row.Password" />
                    </div>
                </td>


                <td>
                    <div>
                        <input tag='edit' class="admin_text" type='text' name='XingMing' req='true' vad='^[@\w\u4e00-\u9fa5]{2,20}$' ng-model="row.XingMing" />
                    </div>
                </td>

                <td>
                    <div>
                        <select class="role" tag='edit' multiple="multiple" id="RoleIds" name="RoleIds" val="{{row.RoleIds}}">
                            <option ng-repeat="r in roles" value="{{r.RoleId}}">{{r.RoleName}}</option>
                        </select>
                    </div>
                </td>

                <td>
                    <div>

                    </div>
                </td>

                <td>
                    <div>
                        <input type="checkbox" id="IsApproved" name="IsApproved" tag="edit" ng-model="row.IsApproved" />
                    </div>
                </td>



                <td> <a style="color:blue;" href="javascript:void(0);" class="remove">删除</a></td>


            </tr>



        </table>

    </div>
</div>







<input type="button" value="更新" ng-click="adapter();" />
