Browse Source

搜索bug

张保健 4 years ago
parent
commit
e472e53418
2 changed files with 2 additions and 8 deletions
  1. 1 4
      src/pages/main/DialysisArea.vue
  2. 1 4
      src/pages/main/WaitingArea.vue

+ 1 - 4
src/pages/main/DialysisArea.vue View File

@@ -186,10 +186,7 @@ export default {
186 186
           var filtedSchedules = []
187 187
           for (let s_i = 0; s_i < originSchedules.length; s_i++) {
188 188
             const schedule = originSchedules[s_i]
189
-            if (
190
-              schedule.patient.name.indexOf(search_keyword) != -1 ||
191
-              schedule.patient.dialysis_no.indexOf(search_keyword) != -1
192
-            ) {
189
+            if ( schedule.patient.name.indexOf(search_keyword) != -1  ) {
193 190
               filtedSchedules.push(schedule)
194 191
               break
195 192
             }

+ 1 - 4
src/pages/main/WaitingArea.vue View File

@@ -165,10 +165,7 @@ export default {
165 165
         var scheduals = []
166 166
         for (let index = 0; index < this.scheduals.length; index++) {
167 167
           const schedual = this.scheduals[index]
168
-          if (
169
-            schedual.patient.name.indexOf(search_keyword) != -1 ||
170
-            schedual.patient.dialysis_no.indexOf(search_keyword) != -1
171
-          ) {
168
+          if ( schedual.patient.name.indexOf(search_keyword) != -1) {
172 169
             scheduals.push(schedual)
173 170
           }
174 171
         }