Commit e0749ebb authored by yangshuxing's avatar yangshuxing

调整成绩规则,默认排序

parent 8eade8b1
......@@ -163,7 +163,7 @@
<tbody>
<tr class="score-detail-item" v-for="item in score.scoreDetails">
<td>{{item.checkPointName}}</td>
<td>{{item.insertTime | substrYear}}</td>
<td>{{item.checkpointTime | substrYear}}</td>
</tr>
</tbody>
</table>
......
......@@ -34,8 +34,9 @@ var score = new Vue({
return value.substr(5,5)+" "+value.substr(11,5);
},
substrYear:function(value){
if(!value || value.length < 18) return "";
return value.substr(5);
if(value) return "";
var date = new Date(value);
return date.getFullYear()+"-"+(date.getMonth()+1)+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
},
substrDate:function(value,length){
if(!value || value.length < 18) return "";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment