@@ -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