|
@@ -167,9 +167,8 @@
|
|
<span>列表</span>
|
|
<span>列表</span>
|
|
</div>
|
|
</div>
|
|
<div class="i-list-con h-19">
|
|
<div class="i-list-con h-19">
|
|
- <div class="d-l-con" :class="{on:listCurrentIndex==index}" v-for="(item,index) in fireList" :key="index"
|
|
|
|
- @click="choseFireList(item.id,item.eventId,index)">
|
|
|
|
- <div class="d-l-l-text">
|
|
|
|
|
|
+ <div class="d-l-con" :class="{on:listCurrentIndex==index}" v-for="(item,index) in fireList" :key="index" @click="choseFireList(item.id,index)">
|
|
|
|
+ <div class="d-l-l-text" >
|
|
<i class="i-small"></i>
|
|
<i class="i-small"></i>
|
|
<h4>{{pickYear.getYear()+1900}}年第{{index+1}}场火灾</h4>
|
|
<h4>{{pickYear.getYear()+1900}}年第{{index+1}}场火灾</h4>
|
|
</div>
|
|
</div>
|
|
@@ -340,8 +339,8 @@
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
/** ----------------------------------底部按钮公用组件开始------------------------------------- */
|
|
/** ----------------------------------底部按钮公用组件开始------------------------------------- */
|
|
- window.showDialog = this.showDialog
|
|
|
|
- window.choseLayerSwitching = this.choseLayerSwitching
|
|
|
|
|
|
+ window.showDialog=this.showDialog
|
|
|
|
+ window.choseLayerSwitching=this.choseLayerSwitching
|
|
/** ----------------------------------底部按钮公用组件结束------------------------------------- */
|
|
/** ----------------------------------底部按钮公用组件结束------------------------------------- */
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -349,7 +348,7 @@
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- listCurrentIndex: 0,
|
|
|
|
|
|
+ listCurrentIndex:0,
|
|
numberFiresYear: 0,
|
|
numberFiresYear: 0,
|
|
forestFireLossTotal: 0,
|
|
forestFireLossTotal: 0,
|
|
fireLossTotalYear: 0,
|
|
fireLossTotalYear: 0,
|
|
@@ -475,14 +474,14 @@
|
|
},
|
|
},
|
|
//选择图层
|
|
//选择图层
|
|
choseLayerSwitching(url) {
|
|
choseLayerSwitching(url) {
|
|
- this.$refs.supermap.layerSwitching(url, true)
|
|
|
|
|
|
+ this.$refs.supermap.layerSwitching(url, true);
|
|
},
|
|
},
|
|
/** ----------------------------------底部按钮公用组件结束------------------------------------- */
|
|
/** ----------------------------------底部按钮公用组件结束------------------------------------- */
|
|
- choseFireList(id,eventId, index) {
|
|
|
|
- this.listCurrentIndex = index
|
|
|
|
|
|
+ choseFireList(id,index) {
|
|
|
|
+ this.listCurrentIndex = index
|
|
let that = this
|
|
let that = this
|
|
- selectFireLoseByid(id,eventId).then(res => {
|
|
|
|
- this.graphicsList = []
|
|
|
|
|
|
+ selectFireLoseByid(id).then(res => {
|
|
|
|
+ this.graphicsList=[]
|
|
//地图标记
|
|
//地图标记
|
|
if (res.data.regionalFlagBOList != null && res.data.regionalFlagBOList.length > 0) {
|
|
if (res.data.regionalFlagBOList != null && res.data.regionalFlagBOList.length > 0) {
|
|
for (let i = 0; i < res.data.regionalFlagBOList.length; i++) {
|
|
for (let i = 0; i < res.data.regionalFlagBOList.length; i++) {
|
|
@@ -496,7 +495,7 @@
|
|
that.$refs.supermap.clearG()
|
|
that.$refs.supermap.clearG()
|
|
that.$refs.supermap.setGraphicsList(this.graphicsList, 'red')
|
|
that.$refs.supermap.setGraphicsList(this.graphicsList, 'red')
|
|
}, 1000)
|
|
}, 1000)
|
|
- } else {
|
|
|
|
|
|
+ }else{
|
|
that.$refs.supermap.clearG()
|
|
that.$refs.supermap.clearG()
|
|
}
|
|
}
|
|
//右侧
|
|
//右侧
|
|
@@ -526,7 +525,7 @@
|
|
this.otherFireCosts[0].elseBlazesPrice = res.data.visuForestFireLossBO.elseBlazesPrice != null ? res.data.visuForestFireLossBO.elseBlazesPrice : 0
|
|
this.otherFireCosts[0].elseBlazesPrice = res.data.visuForestFireLossBO.elseBlazesPrice != null ? res.data.visuForestFireLossBO.elseBlazesPrice : 0
|
|
})
|
|
})
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
getInit() {
|
|
getInit() {
|
|
let that = this
|
|
let that = this
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -557,7 +556,7 @@
|
|
if (res.data.visuForestFireLossTimeBOList != null && res.data.visuForestFireLossTimeBOList.length > 0) {
|
|
if (res.data.visuForestFireLossTimeBOList != null && res.data.visuForestFireLossTimeBOList.length > 0) {
|
|
this.numberFiresYear = res.data.visuForestFireLossTimeBOList.length
|
|
this.numberFiresYear = res.data.visuForestFireLossTimeBOList.length
|
|
this.fireList = res.data.visuForestFireLossTimeBOList
|
|
this.fireList = res.data.visuForestFireLossTimeBOList
|
|
- } else {
|
|
|
|
|
|
+ }else{
|
|
this.numberFiresYear = 0
|
|
this.numberFiresYear = 0
|
|
}
|
|
}
|
|
|
|
|