From b9dc8c15b4874291a5b7cdc66996a380067764d4 Mon Sep 17 00:00:00 2001
From: "851673013@qq.com" <851673013@qq.com>
Date: Thu, 14 Jul 2022 18:31:19 +0800
Subject: [PATCH] =?UTF-8?q?=E6=91=84=E5=83=8F=E5=A4=B4=E6=8E=A5=E5=8F=A3?=
=?UTF-8?q?=E6=9B=B4=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
front/src/api/videoSurveillance.js | 4 ++--
.../src/views/home/detailsPageInfrastructureTree.vue | 11 +++++------
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/front/src/api/videoSurveillance.js b/front/src/api/videoSurveillance.js
index 53b714d7..94198d54 100644
--- a/front/src/api/videoSurveillance.js
+++ b/front/src/api/videoSurveillance.js
@@ -33,14 +33,14 @@ export function searchCamera(params) {
}
export function getCameraAllOrgan(params) {
return request({
- url: `/api/project/selectSubOrgan`,
+ url: `/api/project/selectSubOrganNew`,
method: 'get',
params,
})
}
export function getCameraByParentId(params) {
return request({
- url: `/api/project/selectByParentId`,
+ url: `/api/project/selectByParentIdNew`,
method: 'get',
params,
})
diff --git a/front/src/views/home/detailsPageInfrastructureTree.vue b/front/src/views/home/detailsPageInfrastructureTree.vue
index 086313a2..8fd0def1 100644
--- a/front/src/views/home/detailsPageInfrastructureTree.vue
+++ b/front/src/views/home/detailsPageInfrastructureTree.vue
@@ -11,6 +11,7 @@
:class="item.show ? 'topSelect' : ''"
>
{{ item.name }}
+ ({{ item.channelCount }})
@@ -39,9 +40,7 @@
fill="#0058e1"
>
-
- {{ val.name }}
-
+ {{ val.name }}({{ val.channelCount }})
{{ val.total }}
@@ -55,7 +54,7 @@
:key="child.id"
class="child"
:class="selectId == child.id ? 'select2' : ''"
- @click="onSelect(item, val, child)"
+ @click="onSelect(item, child, child)"
>
- {{ child.total }}
+ {{ child.channelCount }}
@@ -122,7 +121,6 @@
if (select === '123') {
select = ''
}
- // debugger
console.log(
'获取url中的select=====================>',
router.currentRoute.value.query.select
@@ -242,6 +240,7 @@
// }
const selectId = ref('')
const onSelect = (item, val, child) => {
+ debugger
console.log('item, val, child', child)
mybus.emit('getCameraByParentId', val.id)
mybus.emit('getListByParentId', val.id)