|
@@ -5,7 +5,7 @@
|
|
|
|
|
|
<div class="mui-content vongi-xzdw">
|
|
|
<div class="mui-content-padded vongi-xzdw-search">
|
|
|
- <input @focusin="searchIn" @focusout="searchOut" @keyup="doSearchCompany" v-model="searchForm.name" type="search"
|
|
|
+ <input @focusin="searchIn" @focusout="searchOut" @keyup.enter="doSearchCompany" v-model="searchForm.name" type="search"
|
|
|
placeholder="请输入公司名称">
|
|
|
<span class="mui-icon mui-icon-search"></span>
|
|
|
</div>
|
|
@@ -120,7 +120,7 @@
|
|
|
firstCompanyList: [],
|
|
|
secondCompanyList: [],
|
|
|
|
|
|
- showType: 'select',
|
|
|
+ showType: 'search', //select
|
|
|
searchForm: {
|
|
|
sceneId: '',
|
|
|
name: '',
|
|
@@ -213,17 +213,18 @@
|
|
|
//进入搜索
|
|
|
searchIn() {
|
|
|
this.inputIng = false;
|
|
|
- this.showType = 'search';
|
|
|
+ //this.showType = 'search';
|
|
|
},
|
|
|
//离开搜索
|
|
|
searchOut() {
|
|
|
if (!this.searchForm.name) {
|
|
|
- this.showType = 'select';
|
|
|
+ //this.showType = 'select';
|
|
|
}
|
|
|
},
|
|
|
//搜索
|
|
|
doSearchCompany() {
|
|
|
- if (this.inputIng) {
|
|
|
+ this.getSearchCompanyList();
|
|
|
+ /* if (this.inputIng) {
|
|
|
return false
|
|
|
}
|
|
|
this.inputIng = true;
|
|
@@ -233,7 +234,7 @@
|
|
|
_this.searchForm.pageIndex = 1;
|
|
|
_this.getSearchCompanyList();
|
|
|
}
|
|
|
- }, 500);
|
|
|
+ }, 500); */
|
|
|
},
|
|
|
//根据公司名称搜索
|
|
|
getSearchCompanyList() {
|