Commit e0749ebb authored by yangshuxing's avatar yangshuxing

调整成绩规则,默认排序

parent 8eade8b1
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
<tbody> <tbody>
<tr class="score-detail-item" v-for="item in score.scoreDetails"> <tr class="score-detail-item" v-for="item in score.scoreDetails">
<td>{{item.checkPointName}}</td> <td>{{item.checkPointName}}</td>
<td>{{item.insertTime | substrYear}}</td> <td>{{item.checkpointTime | substrYear}}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
......
...@@ -34,8 +34,9 @@ var score = new Vue({ ...@@ -34,8 +34,9 @@ var score = new Vue({
return value.substr(5,5)+" "+value.substr(11,5); return value.substr(5,5)+" "+value.substr(11,5);
}, },
substrYear:function(value){ substrYear:function(value){
if(!value || value.length < 18) return ""; if(value) return "";
return value.substr(5); var date = new Date(value);
return date.getFullYear()+"-"+(date.getMonth()+1)+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
}, },
substrDate:function(value,length){ substrDate:function(value,length){
if(!value || value.length < 18) return ""; 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