From 3e2a6171a6ed48a4d844b96a29515c26c1bba3aa Mon Sep 17 00:00:00 2001
From: zzyuan <781948537@qq.com>
Date: Fri, 30 Aug 2024 10:57:21 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E9=A2=86=E7=94=A8?=
=?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=B1=95=E7=A4=BA=E8=AE=BE=E5=A4=87=E7=BC=96?=
=?UTF-8?q?=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/construction/deviceReceive/index.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/construction/deviceReceive/index.vue b/src/views/construction/deviceReceive/index.vue
index c9c7ded..2e7754d 100644
--- a/src/views/construction/deviceReceive/index.vue
+++ b/src/views/construction/deviceReceive/index.vue
@@ -212,7 +212,7 @@
From 6c4b5da2b8b780eceb826807357832e5cb8f7ab0 Mon Sep 17 00:00:00 2001
From: zzyuan <781948537@qq.com>
Date: Fri, 30 Aug 2024 15:10:36 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E4=BA=8C=E7=BB=B4?=
=?UTF-8?q?=E7=A0=81=E5=AF=BC=E5=87=BA=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/base/bracelet/index.vue | 1 +
src/views/base/device/index.vue | 2 +
src/views/components/qrCodeUpload.vue | 138 +++++++++++++-------------
3 files changed, 74 insertions(+), 67 deletions(-)
diff --git a/src/views/base/bracelet/index.vue b/src/views/base/bracelet/index.vue
index 1f1d4b2..420f8ea 100644
--- a/src/views/base/bracelet/index.vue
+++ b/src/views/base/bracelet/index.vue
@@ -740,6 +740,7 @@
@@ -306,12 +306,8 @@ export default {
keyword2: "",
//保存抽检树形数据
teamTreeData: [],
- //间隔时间
- intervalTime: 1,
-
- //验证对话框单选按钮
- provingTypeRadioValue: "1",
- provingTimeValue: [''],
+ // 查看班组施工定位前,是否选中了班组
+ checkTeamId: null
};
},
created() {
@@ -343,7 +339,11 @@ export default {
this.treeData = treeData
// 设置默认展示杆塔层级
treeData.forEach(item => {
- this.idArr.push(item.id);
+ const children = item.children;
+ children.forEach(child => {
+ // 设置默认展示杆塔层级
+ this.idArr.push(child.id);
+ })
})
}
}).catch(res => {
@@ -353,7 +353,7 @@ export default {
/* 人员树过滤 */
filterNode(value, data, node) {
if (!value) {
- if (node.level == 1) {
+ if (node.level == 1 || node.level == 2) {
node.expanded = true
} else {
node.expanded = false
@@ -411,7 +411,7 @@ export default {
const teamTreeData = res.data;
if (teamTreeData && teamTreeData.length > 0) {
this.teamTreeData = teamTreeData
- // 设置默认展示杆塔层级
+ // 设置默认展示班组层级
teamTreeData.forEach(item => {
this.idArr2.push(item.id);
})
@@ -495,7 +495,7 @@ export default {
this.dialogVisible2 = false
},
// 获取班组下的人员定位及杆塔坐标
- loadPersonsInfo(params) {
+ loadPersonsInfo(params, personData) {
getPersonsInfo(params).then((res) => {
const data = res.data;
if (data) {
@@ -524,6 +524,9 @@ export default {
this.addPersonMarker(item);
}
}
+ if (personData) {
+ this.clickMarker(personData);
+ }
}
}
}).catch((res) => { })
@@ -610,13 +613,26 @@ export default {
'id': towerId,
'teamId': teamId
}
- this.loadPersonsInfo(obj);
+ this.checkTeamId = teamId;
+ this.loadPersonsInfo(obj, null);
} else if (node.level === 4) {
this.isTower = false;
this.isTeam = false;
this.isPerson = true;
- // 选中班组人员 触发事件
- this.clickMarker(data);
+ const teamId = parseInt(data.parentId.replace('team-', ''));
+ const towerId = data.gtId;
+ if (!this.checkTeamId || this.checkTeamId !== teamId) {
+ this.removeOverlay();
+ const obj = {
+ 'id': towerId,
+ 'teamId': teamId
+ }
+ this.checkTeamId = teamId;
+ this.loadPersonsInfo(obj, data);
+ } else {
+ // 选中班组人员 触发事件
+ this.clickMarker(data);
+ }
} else {
this.isTower = false;
this.isTeam = false;
@@ -711,7 +727,7 @@ export default {
'id': this.id,
'teamId': this.teamId
}
- this.loadPersonsInfo(obj);
+ this.loadPersonsInfo(obj, null);
},
// 获取人员运动轨迹
loadGj() {
@@ -900,7 +916,7 @@ export default {
.personManage .left {
- width: 20%;
+ width: 22%;
height: 100%;
padding: 0 0.5%;
box-sizing: border-box;
@@ -913,7 +929,7 @@ export default {
}
.personManage .center {
- width: 58%;
+ width: 54%;
height: 100%;
}
@@ -931,7 +947,7 @@ export default {
}
.personManage .right {
- width: 20%;
+ width: 22%;
height: 100%;
}
diff --git a/src/views/construction/manage/realTimeManage/realTimeManage.vue b/src/views/construction/manage/realTimeManage/realTimeManage.vue
index e67511f..1d37a32 100644
--- a/src/views/construction/manage/realTimeManage/realTimeManage.vue
+++ b/src/views/construction/manage/realTimeManage/realTimeManage.vue
@@ -106,7 +106,7 @@
预警信息
-
+
-
@@ -118,6 +118,7 @@
加载中...
+
@@ -159,6 +160,7 @@ export default {
//预警滚动是否有数据
isHasData: true,
busy: true,
+ isShow3:true,
// 窗口数量
boxNum: 1,//1窗口或4窗口
boxIndex:1,//视频下标
@@ -238,6 +240,9 @@ export default {
})
} else {
this.isHasData = false;
+ if(this.queryParams.pageNum === 1){
+ this.isShow3 = false;
+ }
}
this.loading = false;
this.busy = false;
@@ -735,6 +740,8 @@ export default {
ul {
padding-inline-start: 0;
+ margin-block-start: 0;
+ margin-block-end: 0;
}
.infinite-list-wrapper {