From 8a541c22f3686a27cfc4b85650fc3c920f6f66d0 Mon Sep 17 00:00:00 2001 From: zhangqun <179111901@qq.com> Date: Tue, 30 Jul 2024 15:53:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=95=BF=E6=8C=89=E5=8F=96=E6=B6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/investigation/task.vue | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/pages/investigation/task.vue b/pages/investigation/task.vue index 1dfcc11..f5df97c 100644 --- a/pages/investigation/task.vue +++ b/pages/investigation/task.vue @@ -635,7 +635,9 @@ ], nidZD: '', + lockZD: false, nidYH: '', + lockYH: false }; }, watch: { @@ -1544,7 +1546,18 @@ }).exec(); // 执行查询 }, onLongPressZD(item) { - this.nidZD = item.nid + if(this.nidZD == item.nid){ + if(this.lockZD){ + this.lockZD = false + this.nidZD = '' + } else { + this.lockZD = true + this.nidZD = item.nid + } + } else { + this.lockZD = true + this.nidZD = item.nid + } }, delZD(){ this.troubleshootingData = this.troubleshootingData.filter(r => { @@ -1561,6 +1574,18 @@ }, onLongPressYH(item) { this.nidYH = item.nid + if(this.nidYH == item.nid){ + if(this.lockYH){ + this.lockYH = false + this.nidYH = '' + } else { + this.lockYH = true + this.nidYH = item.nid + } + } else { + this.lockYH = true + this.nidYH = item.nid + } }, delYH(){ this.hiddenDangerList = this.hiddenDangerList.filter(r => {