|
|
@ -22,8 +22,7 @@ |
|
|
|
</ButtonGradient> |
|
|
|
</div> |
|
|
|
|
|
|
|
<InputSearch style="width: 402px;" :formList="searchFormList" :formConfigOptions="{ labelWidth: '90px' }" |
|
|
|
@handleSearch="handleSearch" /> |
|
|
|
<InputSearch style="width: 402px;" :formList="searchFormList" :formConfigOptions="{ labelWidth: '90px' }" :placeholder="searchText" @handleSearch="handleSearch" /> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
@ -79,6 +78,7 @@ export default { |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
searchText:"关键词搜索", |
|
|
|
searchFormList, |
|
|
|
keyMap: [ |
|
|
|
{ |
|
|
@ -106,13 +106,16 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getSearchData() { |
|
|
|
let result = { |
|
|
|
...this.searchData, |
|
|
|
let params = { |
|
|
|
word: this.searchData?.word, |
|
|
|
pageSize: 1000000, |
|
|
|
pageNum: 1 |
|
|
|
}; |
|
|
|
if(!result.word){ |
|
|
|
result = {}; |
|
|
|
} |
|
|
|
return result |
|
|
|
// params = { |
|
|
|
// pageSize: 1000000, |
|
|
|
// pageNum: 1 |
|
|
|
// }; |
|
|
|
return params |
|
|
|
}, |
|
|
|
async handleDelete(data) { |
|
|
|
await confirm({ message: "是否要删除该辖段信息?" }); |
|
|
@ -156,6 +159,7 @@ export default { |
|
|
|
method: "get", |
|
|
|
params: this.getSearchData() |
|
|
|
}).then(result => { |
|
|
|
this.searchText = this.searchData?.word || "关键词搜索"; |
|
|
|
if (result.code != 200) return; |
|
|
|
this.data = result.rows; |
|
|
|
// this.data = [ |
|
|
|