<div class="layui-side-scroll">
	<div class="row">
		<div class="col-lg-12">
			<h1 class="site-h1 ukefu-tab" style="border-top:1px solid #e6e6e6;height:26px;">
				<span class="ukefu-bt">
					<div class="ukefu-bt-text">
						<div class="ukefu-bt-text-title">
							已发布模型
						</div>
					</div>
				</span>
			</h1>
			<table class="layui-table" lay-skin="line">
				<thead>
					<tr class="design-sortable-tr">
						<th>
							<input type="checkbox" id="all" onclick="$('.ids').prop('checked' , $(this).prop('checked'));"/>
						</th>
						<th>名称</th>
						<th>版本</th>
						<th>时间</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<#if cubeList?? && cubeList.content?? && cubeList.content?size gt 0>
					<#list cubeList.content as cube>
					<tr class="tdHasContorllor design-dropable-td">
						<td style="width:1%;">
							<input type="checkbox" class="ids" name="ids" value="${cube.id!''}"/>
						</td>
						<td class=" first_td_head">
							${cube.name!''}
						</td>
						<td>
							${cube.dataversion!''} 
						</td>
						<td>
							${cube.createtime!''}
						</td>
						<td style="white-space:nowrap;width:1%;" nowrap="nowrap">
					  		<a href="/apps/report/cube/pbcubedelete.html?id=${cube.id!''}" data-toggle="tip" data-title="请确认是否删除模型？">
					  			<i class="layui-icon" style="color:red;">&#x1006;</i>
					  			删除
					  		</a>
					  </td>
					</tr>
					</#list>
					<#else>
						<tr>
							<td colspan="20" style="height:400px;">
								<div class="ukefu-empty" style="background: none">
									<i class="layui-icon">&#xe60a;</i>
									<div style="">还没有模型</div>
								</div>
							</td>
						</tr>
					</#if>
				</tbody>
			</table>

		</div>
	</div>
	<div class="row" style="padding:5px;">
		<div class="col-lg-12" id="page" style="text-align:center;"></div>
	</div>
</div>
<script>
	layui.use(['laypage', 'layer'], function(){
		  var laypage = layui.laypage
		  ,layer = layui.layer;
		  laypage({
				cont: 'page'
				,pages: <#if cubeList??>${cubeList.totalPages}<#else>0</#if> //总页数
				,curr:<#if cubeList??>${cubeList.number+1}<#else>0</#if>
				,groups: 5 //连续显示分页数
				,jump:function(data , first){
					if(!first){
						loadURL("/apps/report/cube/pbcubelist.html?p="+data.curr+"&typeid=<#if typeid??>${typeid!''}<#else>0</#if>","#ukefu-cube-content");
					}
				}
		   });
		});
</script>
