common.ajax('dia/norm/station-info/load-data.do', 'get', 'json', {}, function (data) {
$('#stationId').empty();
var option = '<option value=""></option>';
data.forEach(function (v, i) {
var _selected = "";
option += '<option value="' + v.id + '"';
var _tempStationIds = [];
if(yxrzLogForm && yxrzLogForm.stationId) {
_tempStationIds = yxrzLogForm.stationId.split(",");
for(var j=0; j<_tempStationIds.length; j++) {
if (_tempStationIds[j] === v.id) {
option += ' selected ';
$('#stationName').val(v.stationName);
_selected = "selected";
}
}
var selectData = {
"name": v.stationName,
"value": v.id,
"selected": _selected
};
selectStationData.push(selectData);
$('#stationName').val(yxrzLogForm.stationName);
}
option += '>' + v.stationName + '</option>';
})
$('#stationId').append(option);
formSelects.data('stationId', 'local', {
arr: selectStationData
});
formSelects.render();
form.render('select');
preview()
});