From 73c8d3f55d5a675174a61342f3cea712ed5bc0eb Mon Sep 17 00:00:00 2001
From: QibolinCzp <qibolin02429@126.com>
Date: 星期五, 14 五月 2021 10:49:54 +0800
Subject: [PATCH] 问题修改
---
src/components/panel/topicSearch/GasWasteSearch.vue | 42 ++++++++++++++++++++++--------------------
1 files changed, 22 insertions(+), 20 deletions(-)
diff --git a/src/components/panel/topicSearch/GasWasteSearch.vue b/src/components/panel/topicSearch/GasWasteSearch.vue
index 1e0ac3b..ad63218 100644
--- a/src/components/panel/topicSearch/GasWasteSearch.vue
+++ b/src/components/panel/topicSearch/GasWasteSearch.vue
@@ -65,10 +65,10 @@
</div>
<el-scrollbar style="height:264px">
<div class="environmental-risk-list" v-for="(item,index) in list" :key="index" @click="handleLocation(item)"><!-- -->
- <i class="state"></i>
+ <img src="../../../../public/assets/images/map/exhaust/fq_green2.png" alt="" class="state"/>
<div>
- <h3>###鐐煎寲閮�</h3>
- <p>鎵�灞為儴闂細<span>鐐煎寲閮�</span></p>
+ <h3>{{ item.Name }}</h3>
+ <p>鎵�灞為儴闂細<span>{{ item.porltName }}</span></p>
<p>椋庨櫓绾у埆锛�<span>涓夌骇</span></p>
</div>
</div>
@@ -98,10 +98,11 @@
<script>
import mapApi from '@/api/mapApi'
+import WasteWaterIndex from '../../BaseNav/WasteWater/WasteWaterIndex'
-// import WfsHelper from '@components/helpers/WfsHelper'
export default {
name: 'GasWasteSearch',
+ props: ['title'],
data () {
return {
gdVisible: true,
@@ -118,8 +119,6 @@
},
// pageSize: 10,
// current: 1,
- isWaybillHover: true,
- isRouteHover: false,
levelOfRisk: [
{ name: '鍏ㄩ儴', value: '1' },
{ name: '姝e父', value: '2' },
@@ -129,7 +128,6 @@
]
}
},
- props: ['title'],
methods: {
// 鍖哄煙绛涢��
areaType (val) {
@@ -157,23 +155,27 @@
pipelineType: this.form.pipelineType,
dataType: this.form.dataType
}
- console.log(param)
- // var wfsHelper = new WfsHelper()
- // wfsHelper.addTypeName(this.form.query.layerName)
- // wfsHelper.addLike(this.form.query.key, this.form.keyword)
- // const _this = this
- // const res = await AjaxUtils.GetDataAsynByUrl(wfsHelper.getUrl(), {})
- const res = await mapApi.getWasteGas()
- console.log(res)
+ // console.log(param)
+ const res = await mapApi.getWasteGas(param)
+ // console.log(res)
this.list = res.Result.DataInfo
- // if (res.data instanceof Object && Object.prototype.hasOwnProperty.call(res.data, 'features')) {
- // this.list = res.data.features
- // }
+ console.log(this.list)
},
- handleLocation (val) {
+ // 寮圭獥灞曠ず
+ async handleLocation (val) {
console.log(val)
const pos = [val.Latitude, val.Longitude]
- window.map.flyTo(pos, 17)
+ window.map.flyTo(pos, 15)
+ window.$layer.open({
+ content: {
+ content: WasteWaterIndex, // 缁勪欢
+ parent: this, // 鐖剁粍浠�
+ data: { // 浼犻�掔殑鍙傛暟
+ storagePlaceId: val
+ }
+ },
+ title: '澶╂触鐭冲寲 ' + val.Name
+ })
}
}
}
--
Gitblit v1.8.0