| | |
| | | <div class="search-content"> |
| | | <el-input size="small" ref="searchTreeInput" clearable v-model="searchExtensivelyValue" @input="searchInputTree" |
| | | placeholder="请输入搜索条件" style="cursor: pointer;"></el-input> |
| | | <!-- <button @click="searchExtensivelyClick" class="el-icon-search"></button> --> |
| | | </div> |
| | | <div v-show="searchExtensivelyValBoxShow" class="searchExtensively-val-box"> |
| | | <div class="dropdown-menu" @scroll="handleScroll"> |
| | |
| | | |
| | | <script> |
| | | import { getSearchExtensivelyPage } from "@/api/dept/index.js" |
| | | // import { getNinePage } from "@/api/site/index.js"; |
| | | export default { |
| | | name: "mapSearchBox", |
| | | |
| | |
| | | getSearchExtensively (ak, region, query) { |
| | | getSearchExtensivelyPage(ak, region, query, this.pageIndex, this.pageSize).then(res => { |
| | | const data = res.data.result |
| | | |
| | | console.log(data, 12112321) |
| | | |
| | | if (data) { |
| | | data.forEach(element => { |
| | | this.searchExtensivelyArray.push(element) |
| | | }) |
| | | } |
| | | }) |
| | | |
| | | // getNinePage({ |
| | | // current: this.pageIndex, |
| | | // size: this.pageSize, |
| | | // placeName: query, |
| | | // }).then((res) => { |
| | | // const data = res.data.data.records; |
| | | // if(data){ |
| | | // data.forEach(element => { |
| | | // this.searchExtensivelyArray.push(element) |
| | | // }); |
| | | // } |
| | | // this.pages = res.data.data.pages |
| | | // }); |
| | | }, |
| | | |
| | | searchExtensivelyVlaClick (item) { |
| | |
| | | }, |
| | | |
| | | searchInputTree (newText) { |
| | | this.searchExtensivelyArray = [] |
| | | |
| | | if (newText == "") { |
| | | this.searchExtensivelyValBoxShow = false |
| | | this.isShowClearBtn = false |
| | | this.searchExtensivelyArray = [] |
| | | } else { |
| | | this.searchExtensivelyValBoxShow = true |
| | | |