mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改配置
This commit is contained in:
parent
484bc39067
commit
240903a8f1
@ -35,8 +35,8 @@ class ShopTruckCompany extends Controller
|
||||
$query->like('name,code')->equal('status')->dateBetween('craete_at');
|
||||
// 加载对应数据
|
||||
$this->type = $this->request->get('type', 'index');
|
||||
if ($this->type === 'index') $query->where(['status' => '1']);
|
||||
elseif ($this->type === 'recycle') $query->where(['status' => '0']);
|
||||
if ($this->type === 'index') $query->where(['status' => 1]);
|
||||
elseif ($this->type === 'recycle') $query->where(['status' => 0]);
|
||||
// 列表显示分页
|
||||
$query->where(['deleted' => 0])->order('sort desc,id desc')->page();
|
||||
}
|
||||
|
@ -23,7 +23,7 @@
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item layui-inline">
|
||||
<input type="hidden" name="type" value="{:input('type','')}">
|
||||
<input type="hidden" name="type" value="{$type|default='index'}">
|
||||
<button class="layui-btn layui-btn-primary"><i class="layui-icon"></i> 搜 索</button>
|
||||
</div>
|
||||
</form>
|
||||
|
Loading…
x
Reference in New Issue
Block a user