|
|
@ -30,12 +30,14 @@ |
|
|
|
style="width: 100%" |
|
|
|
v-scroll="selectSearch" |
|
|
|
filterable |
|
|
|
:filter-method="aaaa" |
|
|
|
clearable |
|
|
|
remote |
|
|
|
reserve-keyword |
|
|
|
:remote-method="remoteMethod" |
|
|
|
:loading="loading" |
|
|
|
@change="handleChange" |
|
|
|
@blur="handleChange" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="dict in dikeNameOptions" |
|
|
@ -79,11 +81,15 @@ export default { |
|
|
|
this.dikeNameQueryParams.data.dikeName = this.form.dikeName; |
|
|
|
} |
|
|
|
listJbxx(this.dikeNameQueryParams).then((res) => { |
|
|
|
// console.log(111, res); |
|
|
|
console.log(111, res); |
|
|
|
this.dikeNameOptions = res.records; |
|
|
|
}); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
aaaa(value) { |
|
|
|
console.log(999); |
|
|
|
return true; |
|
|
|
}, |
|
|
|
reset() { |
|
|
|
this.dikeNameQueryParams = { |
|
|
|
pageNum: 1, |
|
|
@ -103,24 +109,28 @@ export default { |
|
|
|
}; |
|
|
|
}, |
|
|
|
handleChange(keyWork) { |
|
|
|
console.log(1111, this.form); |
|
|
|
if (!keyWork) { |
|
|
|
this.reset(); |
|
|
|
listJbxx(this.dikeNameQueryParams).then((res) => { |
|
|
|
this.dikeNameOptions = res.records; |
|
|
|
}); |
|
|
|
} |
|
|
|
// console.log(1111, this.form); |
|
|
|
// if (!keyWork) { |
|
|
|
this.reset(); |
|
|
|
listJbxx(this.dikeNameQueryParams).then((res) => { |
|
|
|
this.dikeNameOptions = res.records; |
|
|
|
}); |
|
|
|
// }else{ |
|
|
|
|
|
|
|
// } |
|
|
|
}, |
|
|
|
remoteMethod(query) { |
|
|
|
this.selectLoading = true; |
|
|
|
if (query !== "") { |
|
|
|
this.selectLoading = true; |
|
|
|
// console.log(444, query); |
|
|
|
this.dikeNameQueryParams.data.dikeName = query; |
|
|
|
listJbxx(this.dikeNameQueryParams).then((res) => { |
|
|
|
this.dikeNameOptions = res.records; |
|
|
|
this.selectLoading = false; |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.reset(); |
|
|
|
} |
|
|
|
listJbxx(this.dikeNameQueryParams).then((res) => { |
|
|
|
this.dikeNameOptions = res.records; |
|
|
|
this.selectLoading = false; |
|
|
|
}); |
|
|
|
}, |
|
|
|
selectSearch() { |
|
|
|
this.dikeNameQueryParams.pageNum += 1; |
|
|
|