修改菜单显示

This commit is contained in:
邹景立 2021-04-12 11:59:05 +08:00
parent 8a67ef217b
commit 52dd88689a
2 changed files with 2 additions and 6 deletions

View File

@ -46,12 +46,8 @@ class Menu extends Controller
public function index()
{
$this->title = '系统菜单管理';
$query = $this->_query($this->table);
// 状态选项卡处理
$this->type = input('type', 'index');
if ($this->type === 'index') $query->where(['status' => 1]);
// 数据查询与分页
$query->page(false, true);
$this->_query($this->table)->page(false, true);
}
/**

View File

@ -41,7 +41,7 @@
</thead>
<tbody>
{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'>
<label><input class="list-check-box" value='{$vo.ids}' type='checkbox'></label>
</td>