lvhao 16 часов назад
Родитель
Сommit
bfc7dd2069
1 измененных файлов с 1 добавлено и 12 удалено
  1. 1 12
      template/erp/whlabel_print.html

+ 1 - 12
template/erp/whlabel_print.html

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