mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改菜单显示
This commit is contained in:
parent
8a67ef217b
commit
52dd88689a
@ -46,12 +46,8 @@ class Menu extends Controller
|
|||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$this->title = '系统菜单管理';
|
$this->title = '系统菜单管理';
|
||||||
$query = $this->_query($this->table);
|
|
||||||
// 状态选项卡处理
|
|
||||||
$this->type = input('type', 'index');
|
$this->type = input('type', 'index');
|
||||||
if ($this->type === 'index') $query->where(['status' => 1]);
|
$this->_query($this->table)->page(false, true);
|
||||||
// 数据查询与分页
|
|
||||||
$query->page(false, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{foreach $list as $key=>$vo}
|
{foreach $list as $key=>$vo}
|
||||||
<tr data-dbclick>
|
<tr data-dbclick class="{if $vo.status eq 0 and isset($type) and $type eq 'index'}layui-hide{/if}">
|
||||||
<td class='list-table-check-td think-checkbox'>
|
<td class='list-table-check-td think-checkbox'>
|
||||||
<label><input class="list-check-box" value='{$vo.ids}' type='checkbox'></label>
|
<label><input class="list-check-box" value='{$vo.ids}' type='checkbox'></label>
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user