施工管控样式修改
This commit is contained in:
parent
7389505f63
commit
2892d4bd86
|
|
@ -289,17 +289,7 @@ export default {
|
|||
// 预警表格
|
||||
warnTable: [],
|
||||
//保存表格数据
|
||||
hatTable: [
|
||||
{
|
||||
name: '张三',
|
||||
devName: '1号智能安全帽'
|
||||
},
|
||||
{
|
||||
name: '张三',
|
||||
devName: '1号智能安全帽'
|
||||
}
|
||||
],
|
||||
|
||||
hatTable: [],
|
||||
//保存对话框隐藏展示
|
||||
dialogVisible1: false,
|
||||
dialogVisible2: false,
|
||||
|
|
@ -356,10 +346,8 @@ export default {
|
|||
this.idArr.push(this.checkNodeId);
|
||||
}
|
||||
if (this.checkNodeLevel === 2) { // 杆塔
|
||||
// this.$message('刷新杆塔选中的数据');
|
||||
this.loadWorkInfo();
|
||||
} else if (this.checkNodeLevel === 3) { // 班组
|
||||
// this.$message('刷新班组选中的数据');
|
||||
this.removeOverlay();
|
||||
const obj = {
|
||||
'id': this.checkNodeTowerId,
|
||||
|
|
@ -367,7 +355,6 @@ export default {
|
|||
}
|
||||
this.loadPersonsInfo(obj, null);
|
||||
} else if (this.checkNodeLevel === 4) { // 班组人员
|
||||
// this.$message('刷新班组人员选中的数据');
|
||||
if (!this.isShowHistoryGj) {
|
||||
this.removeOverlay();
|
||||
const obj = {
|
||||
|
|
@ -420,14 +407,6 @@ export default {
|
|||
},
|
||||
/* 人员树过滤 */
|
||||
filterNode(value, data, node) {
|
||||
/* if (!value) {
|
||||
if (node.level == 1 || node.level == 2) {
|
||||
node.expanded = true
|
||||
} else {
|
||||
node.expanded = false
|
||||
}
|
||||
return true
|
||||
} */
|
||||
// 查询列表是否有匹配数据
|
||||
let val = value.toLowerCase()
|
||||
return this.chooseNode(val, data, node)
|
||||
|
|
@ -606,8 +585,8 @@ export default {
|
|||
}).catch((res) => { })
|
||||
},
|
||||
// 人员树选中人员加载的数据
|
||||
loadPersonDetail(params) {
|
||||
getPersonDetail(params).then((res) => {
|
||||
async loadPersonDetail(params) {
|
||||
await getPersonDetail(params).then((res) => {
|
||||
const data = res.data;
|
||||
if (data && data.vo) {
|
||||
const obj = data.vo;
|
||||
|
|
@ -632,13 +611,13 @@ export default {
|
|||
}).catch((res) => { })
|
||||
},
|
||||
// 人员历史轨迹
|
||||
loadHistoryGj() {
|
||||
async loadHistoryGj() {
|
||||
// 手环设备ID和开始时间
|
||||
let obj = {
|
||||
'id': this.person.sh.devId,
|
||||
'startTime': this.chooseDate
|
||||
};
|
||||
getHistoryGj(obj).then((res) => {
|
||||
await getHistoryGj(obj).then((res) => {
|
||||
const data = res.data;
|
||||
if (data && data.length > 0) {
|
||||
this.gjArr = data;
|
||||
|
|
@ -710,7 +689,16 @@ export default {
|
|||
this.checkTeamId = teamId;
|
||||
this.checkNodeTowerId = towerId;
|
||||
this.checkPersonObj = _.cloneDeep(data);
|
||||
if (this.isShowHistoryGj) {
|
||||
// 历史轨迹打开,只切换历史轨迹数据
|
||||
const obj = {
|
||||
'id': data.type === 0 ? parseInt(data.id.replace('zs-', '')) : parseInt(data.id.replace('ls-', '')),
|
||||
'type': data.type
|
||||
}
|
||||
this.relaodHistoryGj(obj);
|
||||
} else {
|
||||
this.loadPersonsInfo(obj, data);
|
||||
}
|
||||
} else {
|
||||
// 选中班组人员 触发事件
|
||||
this.clickMarker(data);
|
||||
|
|
@ -722,6 +710,11 @@ export default {
|
|||
this.removeOverlay();
|
||||
}
|
||||
},
|
||||
async relaodHistoryGj(obj){
|
||||
this.removeOverlay();
|
||||
await this.loadPersonDetail(obj);
|
||||
await this.loadHistoryGj();
|
||||
},
|
||||
// 清除百度地图覆盖物
|
||||
removeOverlay() {
|
||||
this.map.clearOverlays();
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@
|
|||
</div>
|
||||
<!-- 违章识别 -->
|
||||
<div class="vio-box">
|
||||
<el-carousel height="200px" indicator-position="outside" :interval="15000" @change="loadVioInfos"
|
||||
<el-carousel height="200px" indicator-position="outside" :interval="10000" @change="loadVioInfos"
|
||||
v-if="vioArr.length > 0">
|
||||
<el-carousel-item v-for="(itemArr, arrIndex) in vioArr" :key="arrIndex">
|
||||
<div class="vio-box-info layout">
|
||||
|
|
@ -186,8 +186,8 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
startRefresh() {
|
||||
// 每10分钟刷新一次
|
||||
this.intervalId = setInterval(this.refreshData, 1000 * 60 * 10);
|
||||
// 每5分钟刷新一次
|
||||
this.intervalId = setInterval(this.refreshData, 1000 * 60 * 5);
|
||||
},
|
||||
stopRefresh() {
|
||||
if (this.intervalId) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue