<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>
            </tr>

            <tr class="hide">
                <td>
                    <div>
                        <input tag='edit' class="admin_text index" type='text' name='ID' disabled="disabled" />
                    </div>
                </td>
                <td>
                    <div>
                        <select name='categoryId' tag="edit">
                            <option ng-repeat="obj in cates" value="{{obj.ID}}" > {{obj.categoryName}} </option>
                        </select>
                    </div>
                </td>

                <td>
                    <select name='roleId' tag="edit">
                        <option ng-repeat="obj in roles" value="{{obj.RoleId}}"> {{obj.RoleName}} </option>
                    </select>
                </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 tag='edit' class="admin_text index" type='text' name='ID' disabled="disabled" ng-model="row.ID" />
                    </div>
                </td>
                <td>
                    <div>
                        <select name='categoryId' tag="edit">
                            <option ng-repeat="obj in cates" value="{{obj.ID}}" ng-selected="row.categoryId==obj.ID"> {{obj.categoryName}} </option>
                        </select>
                    </div>
                </td>

                <td>
                    <div>
                        <select name='roleId' tag="edit">
                            <option ng-repeat="obj in roles" value="{{obj.RoleId}}" ng-selected="row.roleId==obj.RoleId"> {{obj.RoleName}} </option>
                        </select>
                    </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();" />