From 3aed6a86acf4ac3d4e025ecc413b4e26f61c0850 Mon Sep 17 00:00:00 2001 From: chenchenzai Date: Tue, 22 Nov 2022 18:27:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A6=E4=BE=A7=E6=A0=91=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E4=B8=8A=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/videoSurveillance/index.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/front/src/views/home/videoSurveillance/index.vue b/front/src/views/home/videoSurveillance/index.vue index 8776a9fe..217a2065 100644 --- a/front/src/views/home/videoSurveillance/index.vue +++ b/front/src/views/home/videoSurveillance/index.vue @@ -193,10 +193,11 @@ import { ElMessage } from 'element-plus' // 点击左侧根据parentId查询摄像头列表 mybus.off('getCameraByParentId') mybus.on('getCameraByParentId', (parentId) => { + debugger this.mapSearchParam.parentId = parentId this.mapSearchParam.type = "1" this.mapSearchParam.pageSize = 10000 - this.getCameraByParentId() + this.getCameraByParentId('','department') }) //表格勾选 mybus.off('selectTablePoint') @@ -395,7 +396,7 @@ import { ElMessage } from 'element-plus' } }) }, - getCameraByParentId(type) { + getCameraByParentId(type,dataName) { if (!this.whoShow1.itShowXiHaiAn) { getCameraByParentId(this.mapSearchParam).then((res) => { console.log('根据parent查询摄像头', res.data.data) @@ -431,7 +432,9 @@ import { ElMessage } from 'element-plus' } } } - //params.type='0'; + if(dataName){ + params.type='0'; + } getCameraByCondition(params).then((res) => { //console.log('根据parent查询摄像头44444', res.data.data) if(type=='map'){