From cee4dc7fcebc43b9a909ac713c2d2c4863bdd6ea Mon Sep 17 00:00:00 2001 From: youda Date: Sun, 27 Apr 2025 17:41:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/view/Goods/goodslist.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/admin/view/Goods/goodslist.html b/app/admin/view/Goods/goodslist.html index f729fcd..f8a3c27 100755 --- a/app/admin/view/Goods/goodslist.html +++ b/app/admin/view/Goods/goodslist.html @@ -187,6 +187,12 @@ } columns.push({ field: 'sort', title: '排序', minWidth: 80, edit: 'text' }); + columns.push({ field: 'addtime', title: '添加时间', minWidth: 150, templet: function(d){ + return d.addtime ? new Date(d.addtime * 1000).toLocaleString() : ''; + }}); + columns.push({ field: 'update_time', title: '更新时间', minWidth: 150, templet: function(d){ + return d.update_time ? new Date(d.update_time * 1000).toLocaleString() : ''; + }}); columns.push({ title: '操作', toolbar: '#operationTpl', minWidth: 210, fixed: 'right' }); // 渲染表格