From 15b674c2e16c2d82c28b4b9dcfe7841dd45a9b32 Mon Sep 17 00:00:00 2001 From: cuibaocheng Date: Thu, 11 Jun 2020 10:39:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B4=94=E5=AE=9D=E9=93=96=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../route/newscontent/list-newscontent.html | 2 +- .../route/newscontent/list-newscontentcheck.html | 15 ++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/main/resources/static/route/newscontent/list-newscontent.html b/src/main/resources/static/route/newscontent/list-newscontent.html index 82d37ec..ce23300 100644 --- a/src/main/resources/static/route/newscontent/list-newscontent.html +++ b/src/main/resources/static/route/newscontent/list-newscontent.html @@ -213,7 +213,7 @@ return common.formatDate('yyyy-MM-dd', new Date(rowData)); } }, - {field: 'newsContentResource', width: 150, title: '新闻来源', align:'center', + {field: 'newsContentResource', width: 200, title: '新闻来源', align:'center', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { diff --git a/src/main/resources/static/route/newscontent/list-newscontentcheck.html b/src/main/resources/static/route/newscontent/list-newscontentcheck.html index c779aa7..5a11c4f 100644 --- a/src/main/resources/static/route/newscontent/list-newscontentcheck.html +++ b/src/main/resources/static/route/newscontent/list-newscontentcheck.html @@ -122,7 +122,7 @@ } return rowData; } - },{field: 'newsDirectoriesName', width: 150, title: '新闻版块', align:'center', + },{field: 'newsDirectoriesName', width: 100, title: '新闻版块', align:'center', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -131,7 +131,7 @@ return rowData; } }, - {field: 'newsContentType', width: 150, title: '新闻类型', align:'center', + {field: 'newsContentType', width: 100, title: '新闻类型', align:'center', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -157,7 +157,7 @@ return rowData; } }, - {field: 'newsContentPublishStatus', width: 150, title: '新闻发布', align:'center', + {field: 'newsContentPublishStatus', width: 100, title: '新闻发布', align:'center', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -171,7 +171,7 @@ return rowData; } }, - {field: 'newsContentPublishTime', width: 150, title: '发布时间', align:'center', + {field: 'newsContentPublishTime', width: 120, title: '发布时间', align:'center', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -180,7 +180,7 @@ return common.formatDate('yyyy-MM-dd', new Date(rowData)); } }, - {field: 'newsContentResource', width: 150, title: '新闻来源', align:'center', + {field: 'newsContentResource', width: 200, title: '新闻来源', align:'center', templet: function(row) { var rowData = row[this.field]; if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { @@ -192,10 +192,7 @@ {field: 'newsContentCommentNumber', width: 80, title: '评论量', align:'center', templet: function(row) { var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; + return rowData.toString(); } }, {field: 'newsContentCheckStatus', width: 100, title: '审核新闻', fixed: 'right', align:'center',