diff --git a/src/views/location/Index.vue b/src/views/location/Index.vue
index e7a83cba..eb82637e 100644
--- a/src/views/location/Index.vue
+++ b/src/views/location/Index.vue
@@ -18,20 +18,15 @@
:placeholder="$t('location.enterPhoneNumberToSearch')"
popper-class="search-select"
placement="bottom"
- @blur="searchBlur"
- @focus="searchFocus"
- @change="changeSearchValue"
- @clear="clearSearchValue"
@visible-change="visibleChange"
:remote-method="dropDownSearch"
v-select-load-more="onLoadMore"
- style="margin-right: 10px;"
+ style="margin-right: 10px;width:220px;"
>
{{ item.phoneNumber }}
@@ -40,6 +35,14 @@
+
+
+
+
+
+ {{emptyTip}}
+
+
{
if (response.status === 200) {
- if (this.curPageNum === 1) {
+ if (params.pageNo === 1) {
this.searchValueListShow = response.data.data
} else {
this.searchValueListShow = this.searchValueListShow.concat(response.data.data)
@@ -1197,22 +1200,18 @@ export default {
this.errorMsgHandler(e)
console.error(e)
} finally {
- this.isLoadingMore = false
this.loading.searchLoading = false
+ if(this.searchValueListShow.length === 0) {
+ this.emptyTip = 'No Data'
+ }
}
}
},
changeValue (item) {
},
- changeSearchValue (value) {
- },
- searchBlur () {
- },
- searchFocus () {
- },
onLoadMore () {
- if (!this.isLoadingMore) {
+ if (!this.loading.searchLoading) {
this.initDropdownList(this.curSearchValue)
}
},
@@ -1277,16 +1276,14 @@ export default {
})
}
},
- clearSearchValue () {
- },
visibleChange (state) {
this.searchValueListShow = []
},
dropDownSearch (curVal) {
- // this.isLoadingMore = false
this.curSearchValue = curVal
this.curPageNum = 1
this.searchValueListShow = []
+ this.emptyTip = ''
this.initDropdownList(curVal)
},
mapTimeLineChange (timeFilter) {
@@ -1629,6 +1626,9 @@ export default {
.el-select .el-input__inner {
cursor: text;
}
+ .el-select .el-input .el-select__caret {
+ cursor: text;
+ }
.panel__time {
display: flex;
}