|
|
|
@ -98,6 +98,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
debounce(func, wait) { |
|
|
|
debounce(func, wait) { |
|
|
|
|
|
|
|
console.log('22222222222222222') |
|
|
|
let timeout = null; |
|
|
|
let timeout = null; |
|
|
|
return (...args) => { |
|
|
|
return (...args) => { |
|
|
|
clearTimeout(timeout); |
|
|
|
clearTimeout(timeout); |
|
|
|
@ -269,6 +270,7 @@ export default { |
|
|
|
[this.searchKey]: this.searchText, |
|
|
|
[this.searchKey]: this.searchText, |
|
|
|
...this.params, |
|
|
|
...this.params, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
if(!this.searchText) delete sendData[this.searchKey]; |
|
|
|
let res; |
|
|
|
let res; |
|
|
|
if (this.apiMethod.toLowerCase() === 'post') { |
|
|
|
if (this.apiMethod.toLowerCase() === 'post') { |
|
|
|
res = await axios.post(this.apiUrl, sendData); |
|
|
|
res = await axios.post(this.apiUrl, sendData); |
|
|
|
|