Pārlūkot izejas kodu

11月9日,排班

yq1 1 nedēļu atpakaļ
vecāks
revīzija
6b646e2f5c
1 mainītis faili ar 23 papildinājumiem un 14 dzēšanām
  1. 23 14
      src/pages/new_Patientscheduling/new_content.vue

+ 23 - 14
src/pages/new_Patientscheduling/new_content.vue Parādīt failu

@@ -873,29 +873,34 @@ export default{
873 873
     onclear(){
874 874
       this.getlist()
875 875
     },
876
-    onclear2(){
876
+    onclear2(){    
877 877
       this.getGetAllPatients()
878 878
     },
879 879
     // 搜索
880 880
     onUpdate(val){
881
-      this.schedulingVal = val
882
-      this.scheduleZone
883
-      var suos=[]
884
-      for(let i in this.scheduleZone){
885
-        if(this.schedulingVal!=''){
886
-          if(this.scheduleZone[i].Mon_A.patient.includes(this.schedulingVal)||
887
-            this.scheduleZone[i].Mon_M.patient.includes(this.schedulingVal)||
888
-            this.scheduleZone[i].Mon_N.patient.includes(this.schedulingVal))
889
-          {
890
-            suos.push(this.scheduleZone[i])
881
+      if(val !=''){
882
+        this.schedulingVal = val
883
+        this.scheduleZone
884
+        var suos=[]
885
+        for(let i in this.scheduleZone){
886
+          if(this.schedulingVal!=''){
887
+            if(this.scheduleZone[i].Mon_A.patient.includes(this.schedulingVal)||
888
+              this.scheduleZone[i].Mon_M.patient.includes(this.schedulingVal)||
889
+              this.scheduleZone[i].Mon_N.patient.includes(this.schedulingVal))
890
+            {
891
+              suos.push(this.scheduleZone[i])
892
+            }
893
+          }else{
894
+            this.getlist()
891 895
           }
892
-        }else{
893
-          this.getlist()
894 896
         }
897
+        this.scheduleZone=suos
898
+      }else{
899
+        this.getlist()
895 900
       }
896
-      this.scheduleZone=suos
897 901
     },
898 902
     onUpdate2(val){
903
+      if(val != ''){
899 904
         this.schedulingVal2=val
900 905
         const namearr = []
901 906
         for(let i in this.huangxiu_arr){
@@ -908,7 +913,11 @@ export default{
908 913
           }
909 914
         }
910 915
         this.huangxiu_arr = namearr
916
+      }else{
917
+        this.getGetAllPatients()
918
+      }
911 919
     },
920
+   
912 921
     // 修改
913 922
     patientedit(value){
914 923
       this.xiugaishow=true