bugFix
This commit is contained in:
parent
32ea2d42b7
commit
3696aa6725
|
@ -7,8 +7,8 @@ VUE_APP_TITLE = '曲阳金隅安全智能管控平台'
|
||||||
# 接口地址
|
# 接口地址
|
||||||
#VUE_APP_API_BASEURL = http://1.203.161.103:2800/api
|
#VUE_APP_API_BASEURL = http://1.203.161.103:2800/api
|
||||||
#VUE_APP_WS_API = 'ws://localhost:8000'
|
#VUE_APP_WS_API = 'ws://localhost:8000'
|
||||||
#VUE_APP_API_BASEURL = http://222.222.144.147:6013/api
|
VUE_APP_API_BASEURL = http://222.222.144.147:6013/api
|
||||||
VUE_APP_API_BASEURL = http://127.0.0.1:8000/api
|
#VUE_APP_API_BASEURL = http://127.0.0.1:8000/api
|
||||||
#VUE_APP_BASEURL = http://127.0.0.1:8000
|
#VUE_APP_BASEURL = http://127.0.0.1:8000
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -430,7 +430,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="screen-per-list">
|
<div class="screen-per-list">
|
||||||
<el-table :data="userList" style="width: 100%" :row-key="row => { return row.id }"
|
<el-table :data="userList" style="width: 100%" :row-key="row => { return row.id }"
|
||||||
highlight-current-row class="bigScreenTable" @row-click="userRowClick">
|
highlight-current-row class="bigScreenTable" @row-click="userRowClick">
|
||||||
<el-table-column label="姓名">
|
<el-table-column label="姓名">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
|
@ -892,6 +892,7 @@ export default {
|
||||||
audioSrc:'',
|
audioSrc:'',
|
||||||
audioIndex:0,
|
audioIndex:0,
|
||||||
audioList:{},
|
audioList:{},
|
||||||
|
employeeScroll:0,
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1059,7 +1060,8 @@ export default {
|
||||||
that.screenUser = true;
|
that.screenUser = true;
|
||||||
// debugger;
|
// debugger;
|
||||||
window.map.flyToMarker(that.userMarker[that.screenUserItem.mac], {
|
window.map.flyToMarker(that.userMarker[that.screenUserItem.mac], {
|
||||||
duration: 1000
|
duration: 1000,
|
||||||
|
range: 200
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1103,20 +1105,43 @@ export default {
|
||||||
this.timerTime = null;
|
this.timerTime = null;
|
||||||
this.eventTimer = null;
|
this.eventTimer = null;
|
||||||
this.eventAudioTimer = null;
|
this.eventAudioTimer = null;
|
||||||
window.map.destroy();
|
// window.map.destroy();
|
||||||
clearInterval(this.timerUser)//人员
|
clearInterval(this.timerUser)//人员
|
||||||
clearInterval(this.timerTime)//时间
|
clearInterval(this.timerTime)//时间
|
||||||
clearInterval(this.eventTimer)//时间
|
clearInterval(this.eventTimer)//时间
|
||||||
clearInterval(this.eventAudioTimer)//事件
|
clearInterval(this.eventAudioTimer)//事件
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleChange(item, check) {
|
handleChange(item, check,item2,item3) {
|
||||||
debugger;
|
// debugger;
|
||||||
console.log(check);
|
// let that = this;
|
||||||
|
// console.log(item);
|
||||||
|
// console.log(check);
|
||||||
|
// console.log(item2);
|
||||||
|
// console.log(item3);
|
||||||
this.deptChecked = check.checkedKeys;
|
this.deptChecked = check.checkedKeys;
|
||||||
this.userParams.depts = check.checkedKeys;
|
this.userParams.depts = check.checkedKeys;
|
||||||
|
let obj = {};
|
||||||
|
obj.depts = check.checkedKeys;
|
||||||
|
that.$API.third.blt.all.req(obj).then(res => {
|
||||||
|
debugger;
|
||||||
|
console.log('selectedUser:'+res)
|
||||||
|
})
|
||||||
this.refreshUserMarker();
|
this.refreshUserMarker();
|
||||||
},
|
},
|
||||||
|
//人员类型选择
|
||||||
|
userFilter() {
|
||||||
|
let that = this;
|
||||||
|
this.showUserSelect = false;
|
||||||
|
this.screenUser = true;
|
||||||
|
// that.screenUserItem.name = this.userList[0].my_info.employee_.name;
|
||||||
|
// that.screenUserItem.type = this.userList[0].my_info.employee_.type;
|
||||||
|
// that.screenUserItem.id = this.userList[0].my_info.employee_.id;
|
||||||
|
// that.screenUserItem.photo = this.userList[0].my_info.employee_.photo ? this.userList[0].my_info.employee_.photo : '';
|
||||||
|
// that.screenUserItem.post_name = this.userList[0].my_info.employee_.post_name ? this.userList[0].my_info.employee_.post_name : '';
|
||||||
|
// that.screenUserItem.belong_dept_name = this.userList[0].my_info.employee_.belong_dept_name ? this.userList[0].my_info.employee_.belong_dept_name : '';
|
||||||
|
|
||||||
|
},
|
||||||
audioFinished(){
|
audioFinished(){
|
||||||
if(this.audioIndex<this.audioList.length){
|
if(this.audioIndex<this.audioList.length){
|
||||||
this.audioIndex++;
|
this.audioIndex++;
|
||||||
|
@ -1189,7 +1214,7 @@ export default {
|
||||||
that.audioSrc=item.voice_f;
|
that.audioSrc=item.voice_f;
|
||||||
// that.music.play();//播放
|
// that.music.play();//播放
|
||||||
if(item.location){
|
if(item.location){
|
||||||
window.map.flyToPosition(new jsmap.JSPoint(item.location.longitude, item.location.latitude), { duration: 1000 });
|
window.map.flyToPosition(new jsmap.JSPoint(item.location.longitude, item.location.latitude), { range: 200,duration: 1000 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
@ -1252,7 +1277,7 @@ export default {
|
||||||
that.areaDetailId = data.id;
|
that.areaDetailId = data.id;
|
||||||
this.getAreaOperation();
|
this.getAreaOperation();
|
||||||
let points = data.third_info.xx_rail.detail.polygon.points[0];
|
let points = data.third_info.xx_rail.detail.polygon.points[0];
|
||||||
window.map.flyToPosition(new jsmap.JSPoint(points.x, points.y, points.z), { duration: 1000 });
|
window.map.flyToPosition(new jsmap.JSPoint(points.x, points.y, points.z), { range: 200,duration: 1000 });
|
||||||
},
|
},
|
||||||
//区域下的作业
|
//区域下的作业
|
||||||
getAreaOperation(){
|
getAreaOperation(){
|
||||||
|
@ -1445,19 +1470,7 @@ export default {
|
||||||
this.screenUserItemDetail = res;
|
this.screenUserItemDetail = res;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//人员类型选择
|
|
||||||
userFilter() {
|
|
||||||
let that = this;
|
|
||||||
this.showUserSelect = false;
|
|
||||||
this.screenUser = true;
|
|
||||||
// that.screenUserItem.name = this.userList[0].my_info.employee_.name;
|
|
||||||
// that.screenUserItem.type = this.userList[0].my_info.employee_.type;
|
|
||||||
// that.screenUserItem.id = this.userList[0].my_info.employee_.id;
|
|
||||||
// that.screenUserItem.photo = this.userList[0].my_info.employee_.photo ? this.userList[0].my_info.employee_.photo : '';
|
|
||||||
// that.screenUserItem.post_name = this.userList[0].my_info.employee_.post_name ? this.userList[0].my_info.employee_.post_name : '';
|
|
||||||
// that.screenUserItem.belong_dept_name = this.userList[0].my_info.employee_.belong_dept_name ? this.userList[0].my_info.employee_.belong_dept_name : '';
|
|
||||||
|
|
||||||
},
|
|
||||||
//风险区域layer
|
//风险区域layer
|
||||||
riskMaskerLayers() {
|
riskMaskerLayers() {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
@ -1556,9 +1569,11 @@ export default {
|
||||||
if (item.third_info.xx_rail!==null&&item.third_info.xx_rail!==undefined) {
|
if (item.third_info.xx_rail!==null&&item.third_info.xx_rail!==undefined) {
|
||||||
floorId = item.third_info.xx_rail.detail.floorId;
|
floorId = item.third_info.xx_rail.detail.floorId;
|
||||||
let points = item.third_info.xx_rail.detail.polygon.points;
|
let points = item.third_info.xx_rail.detail.polygon.points;
|
||||||
|
// debugger;
|
||||||
pointsList = points.map(item => {
|
pointsList = points.map(item => {
|
||||||
let obj = item;
|
let obj = item;
|
||||||
obj.z = 0;
|
obj.x=item.longitude;
|
||||||
|
obj.y=item.latitude;
|
||||||
return obj
|
return obj
|
||||||
});
|
});
|
||||||
let areaId = item.id;
|
let areaId = item.id;
|
||||||
|
@ -2024,6 +2039,10 @@ export default {
|
||||||
//员工列表点击
|
//员工列表点击
|
||||||
userRowClick(row) {
|
userRowClick(row) {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
debugger;
|
||||||
|
window.map.flyToMarker(that.userMarker[row.mac], {
|
||||||
|
duration: 1000,range: 200
|
||||||
|
})
|
||||||
that.screenUserItem.name = row.my_info.employee_.name;
|
that.screenUserItem.name = row.my_info.employee_.name;
|
||||||
that.screenUserItem.type = row.my_info.employee_.type;
|
that.screenUserItem.type = row.my_info.employee_.type;
|
||||||
that.screenUserItem.id = row.my_info.employee_.id;
|
that.screenUserItem.id = row.my_info.employee_.id;
|
||||||
|
@ -2035,7 +2054,7 @@ export default {
|
||||||
userTrack() {
|
userTrack() {
|
||||||
this.tracking = true;
|
this.tracking = true;
|
||||||
window.map.trackMarker(this.userMarker[this.screenUserItem.mac], {
|
window.map.trackMarker(this.userMarker[this.screenUserItem.mac], {
|
||||||
range: 150
|
range: 200
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//取消人员追踪
|
//取消人员追踪
|
||||||
|
@ -2108,13 +2127,13 @@ export default {
|
||||||
modelAnimate: {
|
modelAnimate: {
|
||||||
multiplier: 2,
|
multiplier: 2,
|
||||||
},
|
},
|
||||||
scale: 0.8,
|
scale: 1,
|
||||||
properties: {
|
properties: {
|
||||||
name: 'trackMarker'
|
name: 'trackMarker'
|
||||||
},
|
},
|
||||||
callback: (marker) => {
|
callback: (marker) => {
|
||||||
window.map.trackMarker(marker, {
|
window.map.trackMarker(marker, {
|
||||||
range: 40,
|
range: 100,
|
||||||
tilt: 60,
|
tilt: 60,
|
||||||
rotate: 310
|
rotate: 310
|
||||||
});
|
});
|
||||||
|
@ -2141,6 +2160,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
userLineTrackCancel(){
|
userLineTrackCancel(){
|
||||||
|
window.location.reload();
|
||||||
let that = this;
|
let that = this;
|
||||||
that.lineTracking = false;
|
that.lineTracking = false;
|
||||||
that.userMaskerLayer.show = true;
|
that.userMaskerLayer.show = true;
|
||||||
|
@ -2691,7 +2711,8 @@ export default {
|
||||||
right: 18px;
|
right: 18px;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
transition: all .5s linear;
|
transition: all .5s linear;
|
||||||
|
overflow-y: scroll;
|
||||||
|
max-height: 80vh;
|
||||||
.job-content {
|
.job-content {
|
||||||
height: calc(100% - 44px);
|
height: calc(100% - 44px);
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|
|
@ -88,7 +88,8 @@
|
||||||
expandTrigger: 'hover', // 次级菜单的展开方式
|
expandTrigger: 'hover', // 次级菜单的展开方式
|
||||||
label: 'label', //
|
label: 'label', //
|
||||||
value: 'value', //
|
value: 'value', //
|
||||||
emitPath: false, // 在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组,若设置 false,则只返回该节点的值
|
emitPath: false,
|
||||||
|
checkStrictly: true
|
||||||
}"
|
}"
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -89,6 +89,7 @@
|
||||||
label: 'label', //
|
label: 'label', //
|
||||||
value: 'value', //
|
value: 'value', //
|
||||||
emitPath: false, // 在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组,若设置 false,则只返回该节点的值
|
emitPath: false, // 在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组,若设置 false,则只返回该节点的值
|
||||||
|
checkStrictly: true
|
||||||
}"
|
}"
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -284,6 +284,7 @@
|
||||||
<el-select
|
<el-select
|
||||||
v-model="formworker.remployee"
|
v-model="formworker.remployee"
|
||||||
@change="selectWorker"
|
@change="selectWorker"
|
||||||
|
filterable
|
||||||
placeholder="选择项目人员"
|
placeholder="选择项目人员"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
|
|
Loading…
Reference in New Issue