lvhao 22 ore fa
parent
commit
6aee3c5cda
1 ha cambiato i file con 7 aggiunte e 1 eliminazioni
  1. 7 1
      template/erp/whlabel_print.html

+ 7 - 1
template/erp/whlabel_print.html

@@ -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');
 	}