作业票
@@ -1051,7 +1053,13 @@ export default {
let workId = item.properties.get("workId");
if(workId){
that.areaDetailId = item.properties.get("area");
+ let areaItem = that.areaList.filter(item=>{
+ return item.id==that.areaDetailId;
+ });
+ debugger;
+ that.areaName = areaItem[0].name;
that.getAreaOperation();
+ that.getAreaVchannel();
that.workDetail = true;
}else{
that.screenRisk = false;
@@ -1409,12 +1417,11 @@ export default {
if(that.singleAreaMaskerLayer){
that.singleAreaMaskerLayer.show = false;
}
-
},
//区域下的作业
getAreaOperation(){
let that = this;
- this.$API.opm.operation.list.req({area:that.areaDetailId, state: 40}).then(res=>{
+ this.$API.opm.operation.list.req({area:that.areaDetailId, state__in: '30,40'}).then(res=>{
console.log(res)
that.areaOperation = res.results;
})
@@ -1481,7 +1488,6 @@ export default {
closeScreenOperation(){
this.screenOperation = false;
this.screenJobItem = null;
-
},
//加载部门数据
getGroup() {
@@ -1570,7 +1576,6 @@ export default {
this.countIndex = index;
this.getManCount();
},
-
getAreaList() {
let that = this;
that.$API.am.area.list.req({page:0}).then(res => {
@@ -1580,12 +1585,10 @@ export default {
}
})
},
-
//获取危险作业
getDangers() {
let that = this;
- that.$API.opm.operation.list.req({state:40}).then(res => {
- // that.$API.opm.operation.list.req({state:10}).then(res => {
+ that.$API.opm.operation.list.req({state__in:'30,40'}).then(res => {
if (res.err_msg) {
} else {
@@ -1619,7 +1622,6 @@ export default {
}
})
},
-
//选择部门
groupClick(data) {
console.log(data);
@@ -1637,7 +1639,6 @@ export default {
this.screenUserItemDetail = res;
})
},
-
//风险区域layer
riskMaskerLayers() {
let that = this;
@@ -1648,7 +1649,6 @@ export default {
});
window.map.addLayer(that.riskMarkerLayer);
that.getAreas();//区域/风险区域$$
-
},
//摄像头layer
cameraMaskerLayers() {//图标文字
@@ -1671,16 +1671,6 @@ export default {
});
window.map.addLayer(that.domMarkerLayer);
},
- // jobDomMarkerLayers() {
- // let that = this;
- // that.jobDomMarkerLayer = new jsmap.JSDomMarkerLayer({
- // minimumLevel: 3,
- // maxmumLevel: 22,
- // show: false
- // });
- // window.map.addLayer(that.jobDomMarkerLayer);
- // that.showJobDomMarkers();
- // },
//点击区域显示图层
areaMarkerLayers() {
let that = this;
@@ -2051,7 +2041,6 @@ export default {
this.mapPause();
}
},
-
//自动旋转
mapRun() {
if (this.flyManager !== null) {
@@ -2066,20 +2055,16 @@ export default {
tilt: 30
});
}
-
},
-
//暂停旋转
mapPause() {
// this.flyManager.destroy();
this.flyManager.pauseFly();
},
-
//多选框展开收起
filterCtrlFocusChange() {
this.filterCtrlFocus = !this.filterCtrlFocus
},
-
//页面maker的展示控制
markerClick(index) {
let arr = [];
@@ -2104,11 +2089,6 @@ export default {
that.markList[0] = false;
}
}
- // if (that.markList[1]) {
- // window.map.showBuildingMarker = true;
- // } else {
- // window.map.showBuildingMarker = false;
- // }
if (that.markList[1]) {
that.cameraMaskerLayer.show = true;
} else {
@@ -2120,10 +2100,8 @@ export default {
that.materialsMaskerLayer.show = false;
}
if (that.markList[3]) {
- // that.jobDomMarkerLayer.show = true;
that.polygonMaskerLayer.show = true;
} else {
- // that.jobDomMarkerLayer.show = false;
that.polygonMaskerLayer.show = false;
}
if (that.markList[4]) {
@@ -2143,7 +2121,6 @@ export default {
that.timerUser = null;
}
},
-
//获取摄像头列表
getVchannels() {
let that = this;
@@ -2160,7 +2137,6 @@ export default {
}
});
},
-
//获取喇叭列表
getSpeakers() {
let that = this;
@@ -2176,7 +2152,6 @@ export default {
}
});
},
-
//报警详情
warningItemShow(item) {
this.screenJob = false;
@@ -2188,22 +2163,18 @@ export default {
this.screenWarning = true;
});
},
-
//关闭危险作业
closeScreenJob() {
this.screenJob = false;
},
-
//关闭风险区域
closeScreenRisk() {
this.screenRisk = false;
},
-
//光比报警页面
closeScreenWarning() {
this.screenWarning = false;
},
-
//报警处理
handleWarning() {
let that = this;
@@ -2217,7 +2188,6 @@ export default {
}
})
},
-
//员工列表点击
userRowClick(row) {
let that = this;
@@ -3740,7 +3710,7 @@ export default {
max-height: calc(60vh - 120px);
overflow-y: auto;
overflow-x: hidden;
- margin-top: 10px;
+ // margin-top: 10px;
.alarm-item {
display: flex;
diff --git a/src/views/bigScreen/track.vue b/src/views/bigScreen/track.vue
index ce20ba0d..11578746 100644
--- a/src/views/bigScreen/track.vue
+++ b/src/views/bigScreen/track.vue
@@ -6,19 +6,22 @@
查询
取消跟踪