Index.html
2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<%include '../common/__ui/header'%>
<%include '../common/__partail/ListHeader'%>
<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="panel">
<div class="panel-body nopadding">
<div class="table-responsive">
<table class="table table-bordered toggle-table">
<thead>
<tr>
<th width="10%"></th>
<th width="10%">ID</th>
<th width="15%">品类名称</th>
<th width="10%">品类缩写</th>
<th width="15%">所属分类</th>
<th width="10%">排序</th>
<th width="10%">状态</th>
<th width="20%">操作</th>
</tr>
</thead>
<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-info btn-xs edit-class-btn">编辑</a>
<a href=""
class="btn btn-xs open-close-btn <%if item.booleanStatus%>btn-danger <%else%>btn-success<%/if%>"
data-status="<%item.status%>">
<%if item.booleanStatus%>关闭<%else%>开启<%/if%>
</a>
</td>
</tr>
<%/each%>
<%/if%>
</tbody>
</table>
</div>
</div>
</div>
</div>
<%include '../common/__ui/footer'%>