分类：
<ul style="width: 980px">
    <li ng-repeat="c in catepatterns" style="float:left;display:inline-block;">

        <span style="width:80px;">{{c.category.categoryName}}</span>
        <div class="ele_sub_list">
            <u ng-repeat="p in c.patterns">
                <a style="color: blue; padding: 3px 6px 3px 6px;" href="#/admin/status/{{c.category.ID}}/{{p.ID}}"> {{p.pName}}</a>
            </u>
         </div>

</li>
</ul>

<br />
<br />

<h2 style="clear:both;padding-top:15px;"> 状态数据  <span ng-show="categoryId>0"> --> {{category.categoryName}} --> <i ng-show="patternId>0">{{pattern.pName}}</i></span></h2>


<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 ng-show="pattern.pTypeId==2||pattern.pTypeId==13||pattern.pTypeId==20">父节点</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>
                        <div ng-if="pattern.pTypeId==2||pattern.pTypeId==13||pattern.pTypeId==20">
                            <input tag='edit' class="admin_text" type='text' name='statusName' req='true' vad='^[\S]{2,36}$'  />
                        </div>

                        <div ng-if="pattern.pTypeId==12||pattern.pTypeId==19">
                            <select name='statusName' tag="edit">
                                <option ng-repeat="obj in roles" value="{{obj.RoleId}}"> {{obj.RoleName}} </option>
                            </select>
                        </div>
                    </div>
                </td>


                <td>
                    <div>
                        <input tag='edit' class="admin_text" type='text' name='statusOrder'  vad='^\d+$' />
                    </div>
                </td>
               

                <td ng-show="pattern.pTypeId==2||pattern.pTypeId==13||pattern.pTypeId==20">
                    <div>
                        <select name='parentId' tag="edit">
                            <option ng-repeat="obj in parentStatus" value="{{obj.ID}}"> {{obj.statusName}} </option>
                        </select>
                    </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 ng-if="pattern.pTypeId==2||pattern.pTypeId==13||pattern.pTypeId==20">
                        <input tag='edit' class="admin_text" type='text' name='statusName' req='true' vad='^[\S]{2,36}$' ng-model="row.statusName" />
                    </div>

                    <div ng-if="pattern.pTypeId==12||pattern.pTypeId==19">
                        <select name='statusName' tag="edit">
                            <option ng-repeat="obj in roles" value="{{obj.RoleId}}" ng-selected="obj.RoleId==row.statusName" > {{obj.RoleName}} </option>
                        </select>
                    </div>

                </td>


                <td>
                    <div>
                        <input tag='edit' class="admin_text" type='text' name='statusOrder' vad='^\d+$' ng-model="row.statusOrder" />
                    </div>
                </td>

                <td ng-show="pattern.pTypeId==2||pattern.pTypeId==13||pattern.pTypeId==20">
                    <div>
                        <select name='parentId' tag="edit">
                            <option value="0">请选择</option>
                            <optgroup ng-repeat="c in parentStatus" label="{{c.p.pName}}">
                                <option ng-repeat="s in c.s" value="{{s.ID}}" ng-selected="s.ID==row.parentId" >{{s.statusName}}</option>
                            </optgroup>                             
                        </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();" ng-show="categoryId>0" />