diff --git a/htdocs/js/lib/custom/models/dataservice.js b/htdocs/js/lib/custom/models/dataservice.js index e7443602..3055af00 100644 --- a/htdocs/js/lib/custom/models/dataservice.js +++ b/htdocs/js/lib/custom/models/dataservice.js @@ -168,6 +168,8 @@ westdc.dataservice.wsn = { this.selects = ""; this.uls = new Array(); + this.count = 0; + this.first = 0; for(i in data.data) { this.input = new Array(); @@ -185,12 +187,32 @@ westdc.dataservice.wsn = { + '' + ''; this.uls.push('

观测点:'+data.data[i].name+'

可下载的变量: '+ this.input.join("") + this.timemap + '
'); + + this.count++; + if(this.count == 1) + { + this.first = i; + } + } this.selects = this.uls.join(""); + if(this.count > 1) + { + this.allcontrol = '
' + + '
为所有数据选择时间范围(如果某些数据的时间超出范围请单独再次修改):
' + + ' - ' + + '' + + '

'; + }else{ + this.allcontrol = ""; + } + this.HTML = '
' - + '