|
@@ -4,7 +4,7 @@
|
|
|
<input v-model="searchState.searchText" class="input" @input="changeSearchText" @keyup.enter="changeSearchText" />
|
|
|
<div v-show="searchState.showList" class="search-list">
|
|
|
<div v-for="(item, index) in searchState.resultList" :key="index" class="list-item"
|
|
|
- @click="selectSearchMarker(item)">{{ item.name + '(' + item.company + ')' }}
|
|
|
+ @click="selectSearchMarker(item)">{{ item.name }}
|
|
|
</div>
|
|
|
<div v-show="searchState.showList && searchState.resultList.length === 0" style="text-align: center">无数据
|
|
|
</div>
|
|
@@ -62,7 +62,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { getEmergencyExpertNameLike } from '@/api/globalMap';
|
|
|
+import { getPointInfoComprehensiveSearch } from '@/api/globalMap';
|
|
|
import { listMenu } from '@/api/system/menu';
|
|
|
|
|
|
const emits = defineEmits(['switchMap', 'clickMenu', 'selectSearchMarker']);
|
|
@@ -81,10 +81,10 @@ const changeSearchText = () => {
|
|
|
return;
|
|
|
} else {
|
|
|
console.log('搜索值:', searchState.searchText);
|
|
|
- getEmergencyExpertNameLike({
|
|
|
+ getPointInfoComprehensiveSearch({
|
|
|
page: 1,
|
|
|
limit: 10,
|
|
|
- name: searchState.searchText
|
|
|
+ keywords: searchState.searchText
|
|
|
}).then((res) => {
|
|
|
searchState.showList = true;
|
|
|
searchState.resultList = res.data.list;
|
|
@@ -204,8 +204,8 @@ defineExpose({ setMenuChange });
|
|
|
position: absolute;
|
|
|
top: 100px;
|
|
|
left: 0;
|
|
|
- background-color: #eceff7;
|
|
|
- border: 1px solid #042350;
|
|
|
+ background-color: #0d1d4e;
|
|
|
+ border: 1px solid #2C81FF;
|
|
|
width: 815px;
|
|
|
color: #000;
|
|
|
font-size: 46px;
|
|
@@ -213,11 +213,11 @@ defineExpose({ setMenuChange });
|
|
|
|
|
|
.list-item {
|
|
|
display: block;
|
|
|
- font-size: 16px;
|
|
|
- line-height: 40px;
|
|
|
+ font-size: 38px;
|
|
|
+ min-height: 80px;
|
|
|
cursor: pointer;
|
|
|
- padding: 0 10px;
|
|
|
-
|
|
|
+ padding: 10px;
|
|
|
+ color: #ffffff;
|
|
|
&:hover {
|
|
|
background-color: #0a6ebd;
|
|
|
}
|