|
|
|
@ -17,7 +17,10 @@ |
|
|
|
</el-select> |
|
|
|
<el-button slot="append" type="primary" @click="search">搜索</el-button> |
|
|
|
</el-autocomplete> |
|
|
|
<ServiceDetails ref="ServiceDetails"/> |
|
|
|
<ServiceDetails ref="ServiceDetails" :currentLevelData="currentLevelData"/> |
|
|
|
|
|
|
|
<Bmysxxq ref="Bmysxxq" :currentLevelData="currentLevelData"/> |
|
|
|
|
|
|
|
<EventDetails :id="rowId" :is12345="false" :showDialog="showDialog" @close="showDialog = false"/> |
|
|
|
|
|
|
|
<MapResourceInfo ref="MapResourceInfo" :currentLevelData="currentLevelData"/> |
|
|
|
@ -30,11 +33,13 @@ import ServiceDetails from "@/views/dataBoard/overview/components/ServiceDetails |
|
|
|
import EventDetails from "@/views/dataBoard/overview/components/EventDetail.vue"; |
|
|
|
import DissatisfiedDetails from "@/views/dataBoard/overview/components/DissatisfiedDetails.vue"; |
|
|
|
import MapResourceInfo from "@/views/dataBoard/overview/components/MapResourceInfo.vue"; |
|
|
|
import Bmysxxq from "@/views/dataBoard/overview/components/Bmysxxq.vue"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "map-top", |
|
|
|
components: { |
|
|
|
ServiceDetails, |
|
|
|
Bmysxxq, |
|
|
|
EventDetails, |
|
|
|
DissatisfiedDetails, |
|
|
|
MapResourceInfo |
|
|
|
@ -93,7 +98,11 @@ export default { |
|
|
|
console.log(data,'data') |
|
|
|
this.rowId = data.label |
|
|
|
if(this.searchSelect === '1') { |
|
|
|
this.$refs.ServiceDetails.open(data.label); |
|
|
|
if (data.datas.dataClass == '1') { |
|
|
|
this.$refs.Bmysxxq.open(data.label); |
|
|
|
} else { |
|
|
|
this.$refs.ServiceDetails.open(data.label); |
|
|
|
} |
|
|
|
} |
|
|
|
if(this.searchSelect === '2') { |
|
|
|
this.showDialog = true |
|
|
|
@ -122,10 +131,7 @@ export default { |
|
|
|
} |
|
|
|
console.log(this.searchUrl); |
|
|
|
const {data} = await requestGet(this.searchUrl, params); |
|
|
|
var suggestions = data.map(item => ({label: item.id, value: item.content})); |
|
|
|
if (this.searchSelect=== '3') { |
|
|
|
suggestions = data.map(item => ({label: item.id, value: item.content,datas: item})); |
|
|
|
} |
|
|
|
var suggestions = data.map(item => ({label: item.id, value: item.content,datas: item})); |
|
|
|
console.log(suggestions); |
|
|
|
cb(suggestions) |
|
|
|
} catch (error) { |
|
|
|
|