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