Просмотр исходного кода

Merge branch 'test' of http://110.41.163.243:9980/kd-aiot/aiot-app into test

chencc 1 год назад
Родитель
Сommit
f7f004427d
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      pages/tour_tally/check/index.vue

+ 7 - 1
pages/tour_tally/check/index.vue

@@ -92,7 +92,13 @@
 				})
 			},
 			doSearch() {
-				this.filterList = this.equipList.filter(item => item.categoryCode.indexOf(this.keyWords) !== -1)
+				if (!this.keyWords) {
+					this.filterList = this.equipList;
+				} else {
+					this.filterList = this.equipList.filter(item =>
+						item.categoryCode.includes(this.keyWords)
+					);
+				}
 			},
 			handleSave() {
 				let isAllPass = true