|
|
|
@@ -507,21 +507,22 @@ |
|
|
|
}); |
|
|
|
}, |
|
|
|
clearSinglePropInSearchItem(key) { |
|
|
|
console.log(key); |
|
|
|
const self = this; |
|
|
|
this.searchItem[key] = null; |
|
|
|
console.log(this.searchItem); |
|
|
|
this.haveSearch = false; |
|
|
|
Object.keys(this.searchItem).forEach(function(key){ |
|
|
|
if (self.searchItem[key] !== null) { |
|
|
|
if (self.searchItem[key] && self.searchItem[key] !== null) { |
|
|
|
this.haveSearch = true; |
|
|
|
} |
|
|
|
}); |
|
|
|
this.getInventories(); |
|
|
|
}, |
|
|
|
async clearSearchItem() { |
|
|
|
const self = this; |
|
|
|
Object.keys(this.searchItem).forEach(function(key){ |
|
|
|
self.searchItem[key] = null; |
|
|
|
}); |
|
|
|
this.getInventories(); |
|
|
|
// this.searchItem = {}; |
|
|
|
// await this.cols.forEach((item) => { |
|
|
|
// this.searchItem[item.colname] = null; |
|
|
|
|