From 1738edbe080a76d6954f90a6306ebe372627c6d4 Mon Sep 17 00:00:00 2001 From: zhaoxiaohao <913652501@qq.com> Date: Thu, 14 May 2020 14:13:10 +0800 Subject: [PATCH] 修改时间显示的功能 --- kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/productdetail.html | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/productdetail.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/productdetail.html index ed14d56..54a0da8 100644 --- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/productdetail.html +++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/productdetail.html @@ -69,9 +69,10 @@ { field: 'proEndtime', width: 120, title: '结束时间',templet:function(d){ return new Date(d.proEndtime).dateFormat("yyyy/MM/dd"); } }, - { field: 'createTime', width: 160, sort: true, title: '创建时间',templet:function(d){ - return new Date(d.createTime).dateFormat("yyyy/MM/dd hh:mm:ss"); - } }, + // { field: 'createTime', width: 160, sort: true, title: '创建时间',templet:function(d){ + // return new Date(d.createTime).dateFormat("yyyy/MM/dd hh:mm:ss"); + // } }, + { field: 'createTime', width: 250, sort: true, title: '创建时间', templet: "<div>{{layui.util.toDateString(d.createTime, 'yyyy/MM/dd HH:mm')}}</div>" }, { align: 'center', width: 100, toolbar: '#product-table-bar', title: '操作' } ]] }); -- Gitblit v1.8.0