Browse Source

检查项目执行科室

zengfanwei 2 weeks ago
parent
commit
285267a912
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/main/resources/static/js/mz/clinic.js

+ 4 - 2
src/main/resources/static/js/mz/clinic.js

@@ -14358,16 +14358,18 @@ function initExecUnit() {
                 window.location.href = '/thmz/login/view'
                 return;
             }
-            $('#execUnit').empty();   //清空resText里面的所有内容
-            $('#zlExecUnit').empty();   //清空resText里面的所有内容
             var html = '';
             $.each(data.data, function (commentIndex, comment) {
                 html += '<option value="' + comment.code + '">' + comment.name + '(' + comment.pyCode + '-' + comment.code + ')</option>';
             });
+            $('#execUnit').empty();   //清空resText里面的所有内容
+            $('#zlExecUnit').empty();   //清空resText里面的所有内容
             $('#execUnit').html(html);
             $('#execUnit').selectpicker('refresh');
             $('#zlExecUnit').html(html);
             $('#zlExecUnit').selectpicker('refresh');
+            $('#execUnit').selectpicker('val', null);
+            $('#zlExecUnit').selectpicker('val', null);
         }
     });
 }