From c726db1c0120ce7e7064bafb8b7f3b0d7706811f Mon Sep 17 00:00:00 2001 From: kun <1422840143@qq.com> Date: Sat, 12 Aug 2023 18:01:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TreeFilter/index.vue | 4 +- .../AIwarning/accessSituation/index.vue | 45 ++- .../subItemManagement/index.vue | 2 +- .../unmannedVideo/equipList/index.vue | 4 +- .../videoMonitor/realtimeVideo/index.vue | 1 + .../AIwarning/accessSituation/index.vue | 20 +- .../goverment/AIwarning/warningMap/index.vue | 5 +- .../divisionsAndISubItems/index.vue | 2 +- src/views/goverment/videoMonitor/index.vue | 1 + .../AIwarning/accessSituation/index.vue | 2 +- .../components/detailsDialog.vue | 258 ++++++++++++++++++ .../acceptanceApply/index.vue | 23 +- .../project/unmannedVideo/equipList/index.vue | 2 +- .../videoMonitor/realtimeVideo/index.vue | 1 + 14 files changed, 322 insertions(+), 48 deletions(-) create mode 100644 src/views/project/engineeringAcceptance/acceptanceApply/components/detailsDialog.vue diff --git a/src/components/TreeFilter/index.vue b/src/components/TreeFilter/index.vue index 67ee9ab..5130994 100644 --- a/src/components/TreeFilter/index.vue +++ b/src/components/TreeFilter/index.vue @@ -93,10 +93,10 @@ onBeforeMount(async () => { } const res = await props.requestApi!(); console.log(res); - treeData.value = res?.result; + treeData.value = res || []; // treeAllData.value = [{ id: "", [props.label]: "全部" }, ...result]; - treeAllData.value = [...res.result]; + treeAllData.value = res ? [...res] : []; }); watch(filterText, val => { diff --git a/src/views/enterprise/AIwarning/accessSituation/index.vue b/src/views/enterprise/AIwarning/accessSituation/index.vue index 9f12867..35928e1 100644 --- a/src/views/enterprise/AIwarning/accessSituation/index.vue +++ b/src/views/enterprise/AIwarning/accessSituation/index.vue @@ -45,7 +45,7 @@