操作日志bug修正

master
zhengyongxing 5 years ago
parent f9be1c2f48
commit 31948abdf4

@ -171,6 +171,12 @@ class UserActionLogController extends AdminController
flush();//必须同时使用 ob_flush() 和flush() 函数来刷新输出缓冲。
}
fclose($fp);
$getData = $_GET;
unset($getData['xlsname']);
addOperationLog(['op_type'=>3,'key'=>getNowDate(),'op_name'=>'导出操作日志','url'=>U('UserActionLog/index',$getData),'menu'=>'站点-日志管理-操作日志-导出操作日志']);
exit();
}
@ -206,7 +212,7 @@ class UserActionLogController extends AdminController
$map['admin_account'] = ['like',"%{$_REQUEST['adminname']}%"];
}
if ($_REQUEST['op_type']) {
if ($_REQUEST['op_type']||$_REQUEST['op_type']=='0') {
$map['op_type'] = $_REQUEST['op_type'];
}
@ -320,6 +326,12 @@ class UserActionLogController extends AdminController
flush();//必须同时使用 ob_flush() 和flush() 函数来刷新输出缓冲。
}
fclose($fp);
$getData = $_GET;
unset($getData['xlsname']);
addOperationLog(['op_type'=>3,'key'=>getNowDate(),'op_name'=>'导出行为日志','url'=>U('UserActionLog/index',$getData),'menu'=>'站点-日志管理-操作日志-导出行为日志']);
exit();
}

@ -52,14 +52,24 @@
<div class="input-list input-list-game search_label_rehab">
<select id="op_type" name="op_type" class="select_gallery" >
<option value="">请选择类型</option>
<option value="1" <if condition="$vo.op_type eq 1">selected</if> >编辑</option>
<option value="2" <if condition="$vo.op_type eq 2">selected</if> >删除</option>
<option value="3" <if condition="$vo.op_type eq 3">selected</if> >下载</option>
<option value="0" <if condition="$_GET['op_type'] eq '0'">selected</if> >新增</option>
<option value="1" <if condition="$_GET['op_type'] eq 1">selected</if> >编辑</option>
<option value="2" <if condition="$_GET['op_type'] eq 2">selected</if> >删除</option>
<option value="3" <if condition="$_GET['op_type'] eq 3">selected</if> >下载</option>
</select>
</div>
<div class="input-list">
<input type="text" name="adminname" placeholder="操作人" class="" value="{:I('adminname')}" style="width: 180px"/>&nbsp;
<!-- <div class="input-list">-->
<!-- <input type="text" name="adminname" placeholder="操作人" class="" value="{:I('adminname')}" style="width: 180px"/>&nbsp;-->
<!-- </div>get_admin_list-->
<div class="input-list input-list-game search_label_rehab">
<select id="adminname" name="adminname" class="select_gallery" >
<option value="">操作人</option>
<volist name=":get_admin_list()" id="vo">
<option value="{$vo.nickname}" <if condition="$vo.nickname eq I('adminname')">selected</if> >{$vo.nickname}</option>
</volist>
</select>
</div>

Loading…
Cancel
Save