jquery.treetable.js

html:
 
<table class="table table-hover table-responsive main-list" id="columntable">
    <tr>
        <th class="">教材名称/章名称/节名称/单元名称/知识点名称</th>
        <th class="text-center">重点、常考</th>
        <th class="text-center">难点</th>
        <th class="text-center">基础</th>
        <th class="text-right">
            <a href="">导出</a>
            基础</th>
    </tr>
    <tr ng-repeat="item in treeLists" data-tt-id="{{item.id}}" data-tt-parent-id="{{item.parentid}}" on-finish-render-filters>
        <td class="">
            {{item.name}}
        </td>
        <td class="text-center">{{item.emphasis}}</td>
        <td class="text-center">{{item.difficulty}}</td>
        <td class="text-center">{{item.basis}}</td>
        <td class="text-right"><a ui-sref="node-weight-info">查看</a></td>
    </tr>
</table>
 
data-tt-id="{{item.id}}" data-tt-parent-id="{{item.parentid}}"     得加上
 
js
$('#columntable').treetable({expandable:false},true);

  

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
原文地址:https://www.cnblogs.com/lhy-93/p/5741598.html