张保健 1 年間 前
コミット
032f314030
共有1 個のファイルを変更した13 個の追加12 個の削除を含む
  1. 13 12
      src/pages/patientSchedule/patientScheduleIndex.vue

+ 13 - 12
src/pages/patientSchedule/patientScheduleIndex.vue ファイルの表示

@@ -11,8 +11,7 @@
11 11
             <van-search
12 12
                 class="searchInput"
13 13
                 v-model="schedulingVal"
14
-                placeholder="搜索患者姓名/透析号"
15
-                @search="searchPatient"
14
+                placeholder="搜索患者姓名"
16 15
             />
17 16
         </div>
18 17
         <div class="optionsBox">
@@ -393,7 +392,9 @@ export default {
393 392
                 }
394 393
                 if (this.zoneid == 0 || this.zoneid == item.id) {
395 394
                   if (this.class_type == 0 || this.class_type == schedule.schedule_type) {
396
-                    scheduleMap.push(schedule)
395
+                    if (this.schedulingVal == '' || schedule.patient.name.includes(this.schedulingVal)){
396
+                      scheduleMap.push(schedule)
397
+                    }
397 398
                   }
398 399
                 }
399 400
               })
@@ -1682,15 +1683,15 @@ export default {
1682 1683
 
1683 1684
   },
1684 1685
   watch: {
1685
-    schedulingVal (newVal) {
1686
-      if (newVal == '') {
1687
-        this.schedulingVal = newVal
1688
-        this.getlist()
1689
-      } else {
1690
-        this.schedulingVal = newVal
1691
-        this.searchPatient()
1692
-      }
1693
-    }
1686
+    // schedulingVal (newVal) {
1687
+    //   if (newVal == '') {
1688
+    //     this.schedulingVal = newVal
1689
+    //     this.getlist()
1690
+    //   } else {
1691
+    //     this.schedulingVal = newVal
1692
+    //     this.searchPatient()
1693
+    //   }
1694
+    // }
1694 1695
   }
1695 1696
 }
1696 1697
 </script>