lihong преди 1 година
родител
ревизия
8bbc8d59cf
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      src/main/resources/static/js/zy/hospitalized.js

+ 3 - 2
src/main/resources/static/js/zy/hospitalized.js

@@ -365,6 +365,7 @@ function initMaritalStatusSelect() {
                     $('#maritalStatus').append(html);
                     //$('#editUserPatientsNature').append(html);
                 });
+                $('#maritalStatus').val(null)
                 $('#maritalStatus').selectpicker('refresh');
                 // $('#editUserPatientsNature').selectpicker('refresh');
             } else {
@@ -953,9 +954,9 @@ function initOccupationSelect() {
             $.each(res.data, function (commentIndex, comment) {
                 html += '<option value="' + comment.code + '">' + comment.name + '</option>';
             });
-            $('#profession').empty();
             $('#profession').html(html);
-            $('#profession').selectpicker('destroy').selectpicker('refresh');
+            $('#profession').val(null);
+            $('#profession').selectpicker('refresh');
         }
     });
 }