|
|
@@ -583,11 +583,17 @@ $(document).keyup(function(event){
|
|
|
list = list.substring(0,list.length-1);
|
|
|
var data = list.split("-");
|
|
|
$('.select_two').select2("destroy");
|
|
|
+
|
|
|
$(".select_two").removeClass("select_two");
|
|
|
for(i=1;i<data.length+1;i++)
|
|
|
{
|
|
|
$(".setting .select").each(function() {
|
|
|
- $(this).find("option[value='"+data[i]+"']").prop("selected","selected");
|
|
|
+ if($(this).find("option[value='']")){
|
|
|
+
|
|
|
+ }else{
|
|
|
+ $(this).prepend('<option value="">请选择</option>');
|
|
|
+ }
|
|
|
+ $(this).find("option[value='"+data[i]+"']").prop("selected","selected");
|
|
|
});
|
|
|
$("input:radio[value='"+data[i]+"']").attr('checked','true');
|
|
|
}
|