Index.html
5.56 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<%include '../../common/views/__ui/header'%>
<%include '../../common/views/__partail/ListHeader'%>
<div class="contentpanel">
<div class="panel-body" >
<a href="/product/class/new" class="btn btn-success"><i class="fa fa-plus"></i> 添加品类</a>
</div>
<div class="panel-body">
<div class="row">
<div class="panel-col2">
<select name="status" id="status" tabindex="-1" title="" class="select2-offscreen brandBtn-group">
<option value="-1">未选择</option>
<option value="1">开启</option>
<option value="0">关闭</option>
</select>
</div>
<div class="panel-col">
<a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
<a id="filter-all" href="/erpproduct/sort/index" class="btn btn-info">全部</a>
</div>
</div>
</div>
<div class="panel" style="display: none;">
<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>
<%if item.canDelFlag%>
<a href="/erpproduct/sorter/del/<%item.id%>"
class="btn btn-xs del-class-btn btn-danger">删除</a>
<%/if%>
</td>
</tr>
<%/each%>
<%/if%>
</tbody>
</table>
</div>
</div>
</div>
<div class="panel">
<div class="panel-body nopadding">
<div class="sale-category-table dataTables_wrapper no-footer" id="basicTable"></div>
</div>
</div>
</div>
<input type="hidden" id="gridurl" value="<%gridurl%>">
<script type="text/template" id="tableHdTemp">
<div class="level-hd clearfix">
<span class="folder" style="width: 10%"></span>
<span style="width: 10%">ID</span>
<span style="width: 15%">品类名称</span>
<span style="width: 10%">品类缩写</span>
<span style="width: 15%">所属分类</span>
<span class="orderby" style="width: 10%">排序</span>
<span class="status" style="width: 10%">状态</span>
<span class="operate" style="width: 20%">操作</span>
</div>
</script>
<script type="text/template" id="tableTemp2">
<span class="folder" style="width: 10%"></span>
<span style="font-size: 10px;width: 10%">[[id]]</span>
<span style="font-size: 10px;width: 15%">[[sortName]]</span>
<span style="font-size: 10px;width: 10%">[[sortInitials]]</span>
<span style="font-size: 10px;width: 15%">[[sortLevel]]级分类</span>
<span class="orderby" style="font-size: 10px;width: 10%">[[orderBy]]</span>
<span class="status" style="font-size: 10px;width: 10%">[[if status=="1"]]<b style="color: #449d44">开启</b>[[/if]][[if status=="0"]]<b style="color: #d9534f">关闭</b>[[/if]]</span>
<span class="operate" style="font-size: 10px;width: 20%" data-id="[[id]]" data-name="[[sortName]]">
<a class="btn btn-info btn-xs edit-class-btn" href="/product/class/edit/[[id]]">编辑</a>
<b class="openAndClose" data-id="[[id]]" data-name="[[sortName]]">
[[if status=="1"]]<a class="btn btn-danger open-close-btn btn-xs close-category" data-status="[[status]]" href="javascript:;">关闭</a>[[/if]]
[[if status=="0"]]<a class="btn btn-warning open-close-btn btn-xs open-category" data-status="[[status]]" href="javascript:;">开启</a>[[/if]]
</b>
[[if canDelFlag]]
<a href="/erpproduct/sorter/del/[[id]]" class="btn btn-xs del-class-btn btn-danger">删除</a>
[[/if]]
</span>
</script>
<%include '../../common/views/__ui/footer'%>