Browse Source

优化查询

xiaochan 2 years ago
parent
commit
9457dd6d42
1 changed files with 7 additions and 2 deletions
  1. 7 2
      src/components/zhu-yuan-yi-sheng/emr/EmrSidebar.vue

+ 7 - 2
src/components/zhu-yuan-yi-sheng/emr/EmrSidebar.vue

@@ -237,10 +237,15 @@ const typeChange = (val) => {
 }
 
 const filterChange = (val) => {
-  if (templateType === 3) {
+  try {
     hisTreeRef.value.filter(val)
-  } else {
+  } catch {
+
+  }
+  try {
     treeRef.filter(val);
+  } catch {
+
   }
 }