mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
分类不分页
This commit is contained in:
parent
6d0762eb08
commit
ea6d5d20a8
@ -45,7 +45,7 @@ class ShopGoodsCate extends Controller
|
|||||||
{
|
{
|
||||||
$this->title = "商品分类管理(最大{$this->cateLevel}级)";
|
$this->title = "商品分类管理(最大{$this->cateLevel}级)";
|
||||||
$query = $this->_query($this->table)->like('name')->dateBetween('create_at');
|
$query = $this->_query($this->table)->like('name')->dateBetween('create_at');
|
||||||
$query->equal('status')->where(['deleted' => 0])->order('sort desc,id desc')->page();
|
$query->equal('status')->where(['deleted' => 0])->order('sort desc,id desc')->page(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -12,9 +12,7 @@
|
|||||||
|
|
||||||
{block name="content"}
|
{block name="content"}
|
||||||
<div class="think-box-shadow table-block">
|
<div class="think-box-shadow table-block">
|
||||||
{empty name='list'}
|
{notempty name='list'}
|
||||||
<blockquote class="notdata">没有记录哦!</blockquote>
|
|
||||||
{else}
|
|
||||||
<table class="layui-table" lay-skin="line">
|
<table class="layui-table" lay-skin="line">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -71,6 +69,9 @@
|
|||||||
{/foreach}
|
{/foreach}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
{/empty}
|
{$pagehtml|raw|default=''}
|
||||||
|
{else}
|
||||||
|
<span class="notdata">没有记录哦</span>
|
||||||
|
{/notempty}
|
||||||
</div>
|
</div>
|
||||||
{/block}
|
{/block}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user