|
|
<%include '../../common/views/__ui/header'%>
|
|
|
<%include '../../common/views/__partail/ListHeader'%>
|
|
|
<div class="contentpanel">
|
|
|
|
|
|
<div class="contentpanel">
|
|
|
<div style="margin-bottom: 20px">
|
|
|
<a href="/product/class/new" class="btn btn-success"><i class="fa fa-plus"></i> 添加品类</a>
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
<div class="col-md-12">
|
|
|
<div class="panel panel-default">
|
|
|
<div class="panel-heading noborder">
|
|
|
<a href="/product/class/new" class="btn btn-success"><i class="glyphicon-plus"></i>添加品类</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-md-12">
|
|
|
<div class="panel">
|
|
|
<div class="panel-body nopadding">
|
|
|
<div class="table-responsive">
|
|
|
<table class="table table-bordered toggle-table">
|
|
|
<thead>
|
...
|
...
|
@@ -29,30 +25,33 @@ |
|
|
<tbody>
|
|
|
|
|
|
<%if data%>
|
|
|
<%each data as item%>
|
|
|
<tr class="level<%item.sortLevel%> <%if item.child%>hidden<%/if%>" data-parent="<%item.parentId%>" data-val="<%item.id%>" data-status="close">
|
|
|
<td class="toggle-td"><span class="glyphicon glyphicon-folder-close"></span></td>
|
|
|
<td><%item.id%></td>
|
|
|
<td><%item.sortName%></td>
|
|
|
<td><%item.sortInitials%></td>
|
|
|
<td><%item.sortLevel%>级分类</td>
|
|
|
<td><%item.orderBy%></td>
|
|
|
<td>
|
|
|
<%if item.booleanStatus%>开启<%else%>关闭<%/if%>
|
|
|
</td>
|
|
|
<td data-id="<%item.id%>">
|
|
|
<a href="/product/class/edit/<%item.id%>" class="btn btn-success btn-xs edit-class-btn">编辑</a>
|
|
|
<a href="" class="btn btn-xs open-close-btn <%if item.booleanStatus%>btn-danger <%else%>btn-warning<%/if%>" data-status="<%item.status%>">
|
|
|
<%if item.booleanStatus%>开启<%else%>关闭<%/if%>
|
|
|
</a>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<%/each%>
|
|
|
<%/if%>
|
|
|
<%each data as item%>
|
|
|
<tr class="level<%item.sortLevel%> <%if item.child%>hidden<%/if%>" data-parent="<%item.parentId%>"
|
|
|
data-val="<%item.id%>" data-status="close">
|
|
|
<td class="toggle-td"><span class="glyphicon glyphicon-folder-close"></span></td>
|
|
|
<td><%item.id%></td>
|
|
|
<td><%item.sortName%></td>
|
|
|
<td><%item.sortInitials%></td>
|
|
|
<td><%item.sortLevel%>级分类</td>
|
|
|
<td><%item.orderBy%></td>
|
|
|
<td><%if item.booleanStatus%>开启<%else%>关闭<%/if%></td>
|
|
|
<td data-id="<%item.id%>">
|
|
|
<a href="/product/class/edit/<%item.id%>"
|
|
|
class="btn btn-info btn-xs edit-class-btn">编辑</a>
|
|
|
<a href=""
|
|
|
class="btn btn-xs open-close-btn <%if item.booleanStatus%>btn-success <%else%>btn-danger<%/if%>"
|
|
|
data-status="<%item.status%>">
|
|
|
<%if item.booleanStatus%>开启<%else%>关闭<%/if%>
|
|
|
</a>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<%/each%>
|
|
|
<%/if%>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<%include '../../common/views/__ui/footer'%> |
|
|
\ No newline at end of file |
...
|
...
|
|