From fe1c1931f060766c37bcb2ea97ef8b059997b9f5 Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Fri, 1 Jul 2022 17:22:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E5=B1=82=E6=9C=8D=E5=8A=A1-=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E7=BB=84=E4=BB=B6-=E4=B8=9A=E5=8A=A1=E7=BB=84?= =?UTF-8?q?=E4=BB=B6bug406=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/detailsAll/AlgorithmDetails.vue | 1 + .../src/views/detailsAll/BusinessDetails.vue | 13 +++++---- front/src/views/detailsAll/LayerService.vue | 13 +++++---- .../Algorithm/AlgorithmNavigation.vue | 22 ++++++++------ .../Business/BusinessAssociatedAbility.vue | 5 ++-- .../Business/BusinessNavigation.vue | 27 ++++++++++++----- .../Developer/DeveloperAssociatedAbility.vue | 2 +- .../Developer/DeveloperNavigation.vue | 10 +++---- .../LayerServiceAssociatedAbility.vue | 5 ++-- .../LayerService/LayerServiceNavigation.vue | 29 ++++++++++++++----- 10 files changed, 81 insertions(+), 46 deletions(-) diff --git a/front/src/views/detailsAll/AlgorithmDetails.vue b/front/src/views/detailsAll/AlgorithmDetails.vue index f215bd10..581c3bf0 100644 --- a/front/src/views/detailsAll/AlgorithmDetails.vue +++ b/front/src/views/detailsAll/AlgorithmDetails.vue @@ -11,6 +11,7 @@ - - + + + + - - { + // 根据能力id查询是否存在关联应用 + queryPartAppByKeyId2({ keyId: keyId }).then((res) => { console.log('ressssssss', res) if (res.data.data.length > 0) { // 存在关联应用时在导航栏加入关联应用 navList.value.unshift({ name: '关联应用', key: 'algorithm-associated-ability', - show: true + show: true, }) // list.value.push('关联应用') console.log('navList', navList) @@ -82,8 +81,7 @@ const props = defineProps({ selectNow: { type: String, default: '' }, dataList: { type: Object, default: null }, - } - ) + }) const select = ref('algorithm-display') @@ -163,11 +161,17 @@ } }) if (list.value.length > 0) { + console.log( + '11111111111111111111111111', + (select.value = navList.value.filter( + (item) => item.name === list.value[0] + )[0]) + ) + debugger select.value = navList.value.filter( (item) => item.name === list.value[0] )[0].key } - console.log('11111111111111111111111111', list.value, navList.value) } } ) diff --git a/front/src/views/detailsAll/components/Business/BusinessAssociatedAbility.vue b/front/src/views/detailsAll/components/Business/BusinessAssociatedAbility.vue index 95e54415..0173725e 100644 --- a/front/src/views/detailsAll/components/Business/BusinessAssociatedAbility.vue +++ b/front/src/views/detailsAll/components/Business/BusinessAssociatedAbility.vue @@ -1,6 +1,6 @@