报警区域:
- {{ screenWarningItem.area_.name }}
+ {{ screenWarningItem.area_.name
+ }}
触发人:
- {{ screenWarningItem.employee_.name }}
+ {{
+ screenWarningItem.employee_.name
+ }}
触发人部门:
- {{ screenWarningItem.employee_.belong_dept_.name }}
+ {{
+ screenWarningItem.employee_.belong_dept_.name
+ }}
触发事件:
- {{ ite.name }}
+ {{ ite.name
+ }}
触发时间:
@@ -738,7 +761,7 @@ export default {
eareMarker: null,
dropIndex: '1',
countIndex: '2',
- areaShowType:'1',
+ areaShowType: '1',
markList: [false, false, false, false, false, false, false],
autoRun: false,
tracking: false,
@@ -777,6 +800,7 @@ export default {
postList: [],//岗位列表
dangerList: [],//岗位列表
areaList: [],//区域列表/风险区域列表
+ areaOperation:[],
//数据统计
userCount: {
total: 0,
@@ -1029,6 +1053,10 @@ export default {
this.currentWeek = this.$TOOL.dateFormat(new Date(), 'week');
this.currentDay = this.$TOOL.dateFormat(new Date(), 'yyyy年MM月dd日')
},
+ areaItemHandle(index){
+ this.areaShowType = index;
+ },
+ //报警统计
getWarningTotal() {
let that = this;
that.$API.ecm.event.cateAgg.req(that.cateAggForm).then(res => {
@@ -1037,6 +1065,7 @@ export default {
}
})
},
+ //报警类型
getWarningType() {
let that = this;
that.$API.ecm.event_cate.list.req().then(res => {
@@ -1045,11 +1074,17 @@ export default {
}
})
},
+ //区域点击事件
areaRowClick(data) {
let that = this;
that.areaDetail = true;
+ this.$API.opm.operation.list.req({area:data.id}).then(res=>{
+ console.log(res)
+ that.areaOperation = res.results;
+ })
// let points = data.third_info.xx_rail.detail.polygon.points[0];
window.map.flyToPosition(new jsmap.JSPoint(114.63168864138028, 38.81254802029822, 0), { duration: 1000 });
+
},
//岗位
getAllPost() {
@@ -1134,6 +1169,7 @@ export default {
if (res.err_msg) {
} else {
that.areaList = res.results;
+ that.showRiskMarkers();
}
})
},
@@ -1226,7 +1262,8 @@ export default {
show: false
});
window.map.addLayer(that.riskMarkerLayer);
- that.showRiskMarkers();
+ that.getAreas();//区域/风险区域$$
+
},
//摄像头layer
cameraMaskerLayers() {//图标文字
@@ -1306,28 +1343,42 @@ export default {
},
//风险区域
showRiskMarkers() {
- var boxMarker = new jsmap.JSBoxMarker({
- id: 'box',
- position: [
- { x: 114.63059258861512, y: 38.81407163905287, z: 0 },
- { x: 114.63044857916901, y: 38.81396178326786, z: 0 },
- { x: 114.63060812029352, y: 38.81386267832651, z: 0 },
- { x: 114.63073035356713, y: 38.81395745716681, z: 0 },
- ],
- floorId: 1,//楼层id
- color: 'rgba(255,0,0,0.44)',//颜色
- height: 0,//基底高度
- stretchHeight: 6,//拉伸高度
- strokeColor: '#ff0000',//边线颜色
- show: true, //是否显示
- depthTest: Boolean,
- allowPicking: true, //是否允许点击
- displayCondition: new jsmap.JSDisplayCondition(0.0, 1000),//可见范围
- callback: (marker) => {
- // console.log(marker);
+ let that = this;
+ console.log(that.areaList);
+ // debugger;
+ that.areaList.forEach(item => {
+ // debugger
+ let pointsList = [], floorId = null;
+ if (item.third_info.xx_rail!==null&&item.third_info.xx_rail!==undefined) {
+ floorId = item.third_info.xx_rail.detail.floorId;
+ let points = item.third_info.xx_rail.detail.polygon.points;
+ pointsList = points.map(item => {
+ let obj = item;
+ obj.z = 0;
+ return obj
+ });
+ // debugger;
+ console.log(pointsList);
+ let boxMarker = new jsmap.JSBoxMarker({
+ id: item.id,
+ position: pointsList,
+ floorId: floorId,//楼层id
+ color: 'rgba(255,0,0,0.44)',//颜色
+ height: 0,//基底高度
+ stretchHeight: 6,//拉伸高度
+ strokeColor: '#ff0000',//边线颜色
+ show: true, //是否显示
+ // depthTest: Boolean,
+ allowPicking: true, //是否允许点击
+ displayCondition: new jsmap.JSDisplayCondition(0.0, 1000),//可见范围
+ callback: (marker) => {
+ // console.log(marker);
+ }
+ });
+ that.riskMarkerLayer.addMarker(boxMarker);
}
- });
- this.riskMarkerLayer.addMarker(boxMarker);
+ })
+
var boxMarker1 = new jsmap.JSBoxMarker({
id: 'box',
position: [
@@ -1412,16 +1463,16 @@ export default {
//标记图片
let userImage = '';
if (userList.length > 0) {
- debugger;
+ // debugger;
console.log(userList);
- debugger;
+ // debugger;
let lng = [114.62923138539462, 114.6315404372349];//经度
let i = 0;
iconTextMarker = userList[0].mac;
let employee_ = userList[0].my_info.employee_;
employee_.mac = userList[0].mac;
console.log(userList[0].my_info.employee_.type)
- debugger;
+ // debugger;
if (userList[0].my_info.employee_.type === 'employee') {
userImage = "/img/employee.png"
} else if (serList[0].my_info.employee_.type === 'remployee') {
@@ -3277,12 +3328,18 @@ export default {
/*background: url(/public/img/left_arrow.png) no-repeat;*/
background-size: 100% 100%;
}
-.areaNavItem{
+
+.areaNavItem {
color: #ffffff;
+ padding: 8px 16px;
+ border-radius: 15px;
}
-.areaActive{
- color: #0bf1ff;
+.areaActive {
+ border: 1px solid #32fde3;
+ background: #007767;
+ box-shadow: inset 0 0 8px #5aecf0;
}
+
[class*=" el-icon-"],
[class^=el-icon-] {
font-family: element-icons !important;