施工管控样式修改

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: [],
//
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();

View File

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