lvhao 1 month ago
parent
commit
363e4b86c9
1 changed files with 5 additions and 0 deletions
  1. 5 0
      template/erp/whlabel_print.html

+ 5 - 0
template/erp/whlabel_print.html

@@ -587,6 +587,11 @@ $(document).keyup(function(event){
 		$(".setting .select").each(function() {
 		$(".setting .select").each(function() {
 		    
 		    
             if ($(this).hasClass('select_two')) {
             if ($(this).hasClass('select_two')) {
+                $(this).select2("destroy");
+                $(this).select2({
+                    placeholder: "请选择",
+                    allowClear: true,
+                });
                 $(this).val(data[i]).trigger('change');
                 $(this).val(data[i]).trigger('change');
             }else{
             }else{
                 $(this).find("option[value='"+data[i]+"']").prop("selected","selected");
                 $(this).find("option[value='"+data[i]+"']").prop("selected","selected");