...
|
...
|
@@ -113,10 +113,11 @@ |
|
|
var hospital='';
|
|
|
var nowHospital="{$hospital}";
|
|
|
$.each(totalDateX,function (i, v) {
|
|
|
// if(v===nowHospital){
|
|
|
// hospital+="<option value='"+v+"' selected>"+v+"</option>";
|
|
|
// }
|
|
|
hospital+="<option value='"+v+"'>"+v+"</option>";
|
|
|
if(v===nowHospital){
|
|
|
hospital+="<option value='"+v+"' selected>"+v+"</option>";
|
|
|
}else {
|
|
|
hospital += "<option value='" + v + "'>" + v + "</option>";
|
|
|
}
|
|
|
});
|
|
|
$('#hospital').append(hospital);
|
|
|
console.log(hospital);
|
...
|
...
|
@@ -627,7 +628,11 @@ |
|
|
var html="<option value=''>全部</option>";
|
|
|
if (data!="") {
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
html += '<option value=' + data[i]['note'] + '>' + data[i]['note'] + '</option>';
|
|
|
if ({$note}==data[i]['note']){
|
|
|
html+='<option value=' + data[i]['note'] + 'selected'+ '>' + data[i]['note'] + '</option>';
|
|
|
}else {
|
|
|
html += '<option value=' + data[i]['note'] + '>' + data[i]['note'] + '</option>';
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
$("#note").html(html);
|
...
|
...
|
|