<h2>行权限  <span ng-show="categoryId>0"> - {{category.categoryName}}</span></h2>


分类：
<ul style="width: 980px"><li ng-repeat="c in cates" style="float:left;width:110px"><a style="color:blue" href="#/admin/auth/{{c.ID}}"> {{c.categoryName}}</a></li></ul>

<div style="width:100%;float:right;" ng-show="categoryId>0">
    <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>
            </tr>

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

                <td>
                    <select name='userPatternId' tag="edit">
                        <option ng-repeat="obj in patterns" value="{{obj.ID}}"> {{obj.pName}} </option>
                    </select>
                </td>

                <td>
                    <div>
                        <input tag='edit' class="admin_text index" type='checkbox' name='isReadable' />
                    </div>
                </td>

                <td>
                    <div>
                        <input tag='edit' class="admin_text index" type='checkbox' name='isEditable' />
                    </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 tag='edit' class="admin_text index" type='text' name='ID' disabled="disabled" ng-model="row.ID" />
                    </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>
                    <select name='userPatternId' tag="edit">
                        <option ng-repeat="obj in patterns" value="{{obj.ID}}" ng-selected="row.userPatternId==obj.ID"> {{obj.pName}} </option>
                    </select>
                </td>

                <td>
                    <div>
                        <input tag='edit' class="admin_text index" type='checkbox' name='isReadable' ng-model="row.isReadable" />
                    </div>
                </td>

                <td>
                    <div>
                        <input tag='edit' class="admin_text index" type='checkbox' name='isEditable' ng-model="row.isEditable" />
                    </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();" ng-show="categoryId>0" />