|
@@ -279,14 +279,14 @@
|
|
|
var init=this.init();
|
|
|
if(init="3001"){
|
|
|
this.getData();
|
|
|
- this.getSearchList();
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//是
|
|
|
|
|
|
} else {
|
|
|
this.getData();
|
|
|
- this.getSearchList();
|
|
|
+
|
|
|
|
|
|
//不是
|
|
|
// uni.navigateTo({
|
|
@@ -386,23 +386,7 @@
|
|
|
},
|
|
|
|
|
|
|
|
|
- async getSearchList(ming = {}) {
|
|
|
- const res = await this.$myRequest({
|
|
|
- url: 'Index/getSiteDropDownBox',
|
|
|
- data: ming
|
|
|
- })
|
|
|
- res.data.data.forEach(item => {
|
|
|
- this.searchList.push(item.siteName)
|
|
|
- this.searchList2.push(item.siteName)
|
|
|
- });
|
|
|
- },
|
|
|
-
|
|
|
- clickSelectItem(item, index) {
|
|
|
- this.getSearchList({
|
|
|
- "siteName": item
|
|
|
- });
|
|
|
- this.flag = false
|
|
|
- },
|
|
|
+
|
|
|
|
|
|
handleInput() {
|
|
|
var newlist = this.searchList2.filter(item => item.indexOf(this.searchInput) > -1)
|