Commit 1ee67fa6 authored by yangshuxing's avatar yangshuxing

调整成绩规则,默认排序

parent e0749ebb
...@@ -71,10 +71,15 @@ $(function () { ...@@ -71,10 +71,15 @@ $(function () {
layer.alert("要启用此功能,请先在计时管理页面完成名单导入"); layer.alert("要启用此功能,请先在计时管理页面完成名单导入");
}else if (type == 15){ }else if (type == 15){
layer.alert("要启用此功能,请先导入路线,且路线上至少有3个标注点"); layer.alert("要启用此功能,请先导入路线,且路线上至少有3个标注点");
window.location.href="/gk/road/index/"+getCmptId()+"?"+window.location.search; setTimeout(function () {
window.location.href="/gk/road/index/"+getCmptId()+"?"+window.location.search;
},3000)
} else if (type == 16){ } else if (type == 16){
layer.alert("要启用此功能,请先导入路线,且路线上至少有3个标注点"); layer.alert("要启用此功能,请先导入路线,且路线上至少有3个标注点");
window.location.href="/gk/road/index/"+getCmptId()+"?"+window.location.search; setTimeout(function () {
window.location.href="/gk/road/index/"+getCmptId()+"?"+window.location.search;
},3000)
} }
} else { } else {
if (type == 2 || type == 5) { if (type == 2 || type == 5) {
......
...@@ -34,9 +34,9 @@ var score = new Vue({ ...@@ -34,9 +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) return ""; if(!value) return "";
var date = new Date(value); var date = new Date(value);
return date.getFullYear()+"-"+(date.getMonth()+1)+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds(); 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