From 6e879f5b1c6f86710850a1803c3c85f2f262b944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Sun, 9 Oct 2022 18:30:53 +0800 Subject: [PATCH] Update index_search.html --- app/admin/view/oplog/index_search.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/admin/view/oplog/index_search.html b/app/admin/view/oplog/index_search.html index bae7e4ae1..7276662ec 100644 --- a/app/admin/view/oplog/index_search.html +++ b/app/admin/view/oplog/index_search.html @@ -80,10 +80,7 @@ data.unshift(['ID', '操作账号', '访问节点', '访问IP地址', '访问地理区域', '访问操作', '操作内容', '操作时间']); // 自动计算列序号 - var lastCol = layui.excel.numToTitle((function (count, idx) { - for (idx in data[0]) count++; - return count; - })(0)); + var lastCol = layui.excel.numToTitle(data[0].length || 0); // 设置表头样式 layui.excel.setExportCellStyle(data, 'A1:' + lastCol + '1', {