+
+
{{item.username}}
{{item.phone}}
@@ -73,10 +74,11 @@
listData:[],
allData:[],
fireLngLat:'',
- distanceradio: 5,
+ distanceradio: 3,
personnelGraphicLayer: null,
graphicLayerArr: [],
- areaName: localStorage.getItem("areaName")
+ areaName: localStorage.getItem("areaName"),
+ checkPhoneArr:[]
}
},
watch:{
@@ -106,6 +108,16 @@
})
this.$emit('close')
},
+ phoneCheckClick(item){
+ if(!item.phone){
+ return
+ }
+ if(this.checkPhoneArr.includes(item.phone)){
+ this.checkPhoneArr = this.checkPhoneArr.filter(val => val != item.phone)
+ }else{
+ this.checkPhoneArr.push(item.phone)
+ }
+ },
checkChange(){
this.getListData();
},
@@ -152,6 +164,7 @@
if(this.distanceradio == 5){
this.listData = arr
}
+
this.listData.sort((a,b)=>{
return a.distance - b.distance
})
@@ -217,10 +230,16 @@
let date1 = time1.split('-')
let date2 = time2.split(':')
let dates = date1[0]+'年'+date1[1]+'月'+date1[2]+'日 '+date2[0]+'时'+date2[1]+'分'+date2[2]+'秒'
- this.listData.forEach(item =>{
- phoneArr.push(item.phone)
- })
- console.log('phoneArr',phoneArr.join(','))
+
+
+ if(this.checkPhoneArr.length>0){
+ phoneArr = this.checkPhoneArr
+ }else{
+ this.listData.forEach(item =>{
+ phoneArr.push(item.phone)
+ })
+ }
+
let param = {
phoneNumbers: phoneArr.join(','),
time: dates,
@@ -452,5 +471,32 @@
width: 95%;
height: 80px;
}
-
+ .phonecheckbox{
+ width: 14px;
+ height: 14px;
+ border: 1px solid #DCDFE6;
+ border-radius: 3px;
+ background: #fff;
+ margin-right: 10px;
+ }
+ .phonecheckbox.active{
+ background: #409EFF;
+ border: 1px solid #409EFF;
+ position: relative;
+ }
+ .phonecheckbox.active::after{
+ box-sizing: content-box;
+ content: "";
+ border: 1px solid #FFF;
+ border-left: 0;
+ border-top: 0;
+ width: 3px;
+ height: 7px;
+ left: 4px;
+ top: 1px;
+ position: absolute;
+ transition: transform .15s ease-in .05s;
+ transform-origin: center;
+ transform: rotate(45deg) scaleY(1);
+ }
\ No newline at end of file
diff --git a/src/views/home/widget/reportlist.vue b/src/views/home/widget/reportlist.vue
index 485cbef..05a39ae 100644
--- a/src/views/home/widget/reportlist.vue
+++ b/src/views/home/widget/reportlist.vue
@@ -1,6 +1,9 @@
火情线索
+
+
+
@@ -84,6 +87,11 @@ import { parse } from '../lib/handleGeojson';
this.$emit('merge')
}
},
+ close(){
+ this.graphicLayer.removeGraphic(this.graphicWinodw);
+ this.graphicLayer.removeGraphic(this.graphicPoint)
+ this.$emit("close")
+ },
jiankong(e){
this.$emit("jiankong",e);
},
@@ -151,6 +159,9 @@ import { parse } from '../lib/handleGeojson';
})
_self.globalmap.addLayer(_self.graphicLayer)
}
+ _self.graphicLayer.removeGraphic(_self.graphicWinodw);
+ _self.graphicLayer.removeGraphic(_self.graphicPoint)
+
if(_self.graphicPoint && _self.graphicWinodw){
_self.graphicLayer.clear();
_self.graphicPoint = null;
@@ -357,5 +368,18 @@ border: 1px solid #F18B00;
-webkit-box-shadow: inset 1px 1px 3px rgba(0, 0, 0, .35);
background-color: rgba(0, 0, 0, .5)
}
+.close-button {
+ position: absolute;
+ right: 20px;
+ top: 14px;
+ cursor: pointer;
+ color: #fff;
+ font-weight: bold;
+ width: 20px;
+ height: 20px;
+ background: #0ABFB5cc;
+ line-height: 20px;
+ text-align: center;
+ }
\ No newline at end of file