diff --git a/src/layout/components/Header/index.vue b/src/layout/components/Header/index.vue index 5ee0a1d..677c52c 100644 --- a/src/layout/components/Header/index.vue +++ b/src/layout/components/Header/index.vue @@ -308,7 +308,7 @@ break case '/sceneTesting': - title.value = '三峡之巅-安全检测' + title.value = '三峡之巅-异常检测' navLeft.value = [ { name: '奉节县', diff --git a/src/views/monitor/components/box-1.vue b/src/views/monitor/components/box-1.vue index a900246..6f1ccbe 100644 --- a/src/views/monitor/components/box-1.vue +++ b/src/views/monitor/components/box-1.vue @@ -137,7 +137,7 @@
- +
- 安全告警总数 + 异常告警总数 { regionList.value[i].resourcesList[x].show = !regionList.value[i].resourcesList[x].show + } const handleCamera = async (itemCode,resource) => { console.log(resource,'resourceresourceresourceresourceresourceresource') @@ -512,11 +513,19 @@ cameraName: cameraName.value, businessScenicArea: params.businessScenicArea }) - console.log(res.data,'测收拾收拾') + regionList.value = res.data regionList.value.videoResources = res.data.videoResources // regionList.value[0].show = true // regionList.value[0].resourcesList[0].show = true + // 初始化 false + regionList.value.forEach((item,index)=>{ + // item.show = true + item.resourcesList.forEach((r,i)=>{ + r.show = false + }) + }) + if(search=='search'){ regionList.value.forEach((item,index)=>{ item.show = true diff --git a/src/views/testing/components/box-1.vue b/src/views/testing/components/box-1.vue index 2dc8099..4c31aaa 100644 --- a/src/views/testing/components/box-1.vue +++ b/src/views/testing/components/box-1.vue @@ -23,7 +23,7 @@
- +
@@ -38,7 +38,7 @@
- 安全告警总数 + 异常告警总数