施工管控样式修改

This commit is contained in:
cwchen 2024-09-29 16:42:50 +08:00
parent 7389505f63
commit 2892d4bd86
2 changed files with 23 additions and 30 deletions

View File

@ -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();

View File

@ -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) {