mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改日志查询
This commit is contained in:
parent
b052fbab51
commit
e008ce4622
@ -38,6 +38,7 @@ class Log extends BasicAdmin {
|
||||
*/
|
||||
public function index() {
|
||||
$this->title = '系统操作日志';
|
||||
$this->assign('actions', Db::name($this->table)->group('action')->column('action'));
|
||||
$db = Db::name($this->table)->order('id desc');
|
||||
$get = $this->request->get();
|
||||
foreach (['action', 'content', 'username'] as $key) {
|
||||
@ -45,6 +46,7 @@ class Log extends BasicAdmin {
|
||||
$db->where($key, 'like', "%{$get[$key]}%");
|
||||
}
|
||||
}
|
||||
|
||||
parent::_list($db);
|
||||
}
|
||||
|
||||
|
@ -18,15 +18,22 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
<div class="form-group">
|
||||
<input type="text" name="username" value="{$Think.get.username|default=''}" placeholder="操作者"
|
||||
class="input-sm form-control">
|
||||
<input type="text" name="username" value="{$Think.get.username|default=''}" placeholder="操作者" class="input-sm form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-3">
|
||||
<div class="form-group">
|
||||
<input type="text" name="action" value="{$Think.get.action|default=''}" placeholder="行为"
|
||||
class="input-sm form-control">
|
||||
<select name='action' class='input-sm form-control'>
|
||||
<option value=''> - 行为 - </option>
|
||||
<!--{foreach $actions as $action}-->
|
||||
<!--{if $action===$Think.get.action}-->
|
||||
<option selected="selected" value='{$action}'>{$action}</option>
|
||||
<!--{else}-->
|
||||
<option value='{$action}'>{$action}</option>
|
||||
<!--{/if}-->
|
||||
<!--{/foreach}-->
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user