From b623d5a6d97441b05035d4f0f174e8b5a5fe8f9c Mon Sep 17 00:00:00 2001 From: cxdbz Date: Mon, 25 Nov 2019 19:08:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=88=90=E7=BB=A9=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=98=BE=E7=A4=BA=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/kaoshi/view/index/index.html | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/application/kaoshi/view/index/index.html b/application/kaoshi/view/index/index.html index dad0cf41..7c6ae650 100644 --- a/application/kaoshi/view/index/index.html +++ b/application/kaoshi/view/index/index.html @@ -61,7 +61,7 @@ // } // return str; // }}, - {field: "",title: '参考年级', minWidth:160,templet:function(d){ + {field: "",title: '参考年级', minWidth:180,templet:function(d){ var str=''; if(d.ks_nianji.length>0) { @@ -75,7 +75,7 @@ } return str; }}, - {field: '', title: '参考学科', minWidth:150,templet:function(d){ + {field: '', title: '参考学科', minWidth:100,templet:function(d){ var str=''; if(d.ks_subject.length>0) { @@ -89,8 +89,14 @@ } return str; }} , - {field: 'bfdate', title: '开始时间', minWidth:100,sort: true}, - {field: 'enddate', title: '结束时间', minWidth:100, sort: true}, + {field: 'bfdate', title: '考试时间', minWidth:150,sort: true,templet:function(d){ + var date; + date = d.enddate.split('-'); + + endate = date[1] + '-' + date[2]; + endate = d.bfdate + '~' + endate; + return endate; + }}, {field: 'status', title: '状态', minWidth:80,templet:'#status', sort: true}, {field: 'id', title: '操作',toolbar: '#barDemo',minWidth:175} ]];