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 @@