diff --git a/front/src/views/abilityStatistics/components/AbilityRanking.vue b/front/src/views/abilityStatistics/components/AbilityRanking.vue index 33aaac78..43e43c8c 100644 --- a/front/src/views/abilityStatistics/components/AbilityRanking.vue +++ b/front/src/views/abilityStatistics/components/AbilityRanking.vue @@ -138,12 +138,20 @@ //查看详情方法 function viewDetails(id) { console.log('id=========>', id) - router.push({ - path: '/details', + // router.push({ + // path: '/details', + // query: { + // id: id, + // }, + // }) + const detailPage = router.resolve({ + path: '/details', // 跳转的页面路由 query: { id: id, + hiddenBackFlag: true, }, }) + window.open(detailPage.href, '_blank') } // 获取榜单数据 const praiseList = ref([]) diff --git a/front/src/views/abilityStatistics/components/CapabilityRequirements.vue b/front/src/views/abilityStatistics/components/CapabilityRequirements.vue index 1e081145..34d63e7b 100644 --- a/front/src/views/abilityStatistics/components/CapabilityRequirements.vue +++ b/front/src/views/abilityStatistics/components/CapabilityRequirements.vue @@ -59,12 +59,20 @@ //查看详情方法 function viewDetails(id) { console.log('id=========>', id) - router.push({ - path: '/demandDetails', + // router.push({ + // path: '/demandDetails', + // query: { + // id: id, + // }, + // }) + const detailPage = router.resolve({ + path: '/demandDetails', // 跳转的页面路由 query: { id: id, + // hiddenBackFlag: true, }, }) + window.open(detailPage.href, '_blank') } function jumpPage() { router.push({ diff --git a/front/src/views/newHome/components/LatestCapabilities.vue b/front/src/views/newHome/components/LatestCapabilities.vue index 4f83e330..77381fa6 100644 --- a/front/src/views/newHome/components/LatestCapabilities.vue +++ b/front/src/views/newHome/components/LatestCapabilities.vue @@ -8,13 +8,13 @@
- +
{{ item.name }}
- {{ item.deptName }} -
+ {{ item.deptName }} +
{{ item.description || '暂无描述' }}
@@ -81,18 +81,26 @@ query: { // select: '组件服务', select: DETAIL_PAGE_CONTENT_DEFAULT_TAB, - orderField:'tdr.create_date' + orderField: 'tdr.create_date', }, }) } const selectOne = (id) => { console.log('点击===============》', id) - router.push({ - path: '/details', + // router.push({ + // path: '/details', + // query: { + // id: id, + // }, + // }) + const detailPage = router.resolve({ + path: '/details', // 跳转的页面路由 query: { id: id, + hiddenBackFlag: true, }, }) + window.open(detailPage.href, '_blank') } diff --git a/front/src/views/newHome/components/RecommendationAbility.vue b/front/src/views/newHome/components/RecommendationAbility.vue index 1f5dc17d..1b9d6987 100644 --- a/front/src/views/newHome/components/RecommendationAbility.vue +++ b/front/src/views/newHome/components/RecommendationAbility.vue @@ -104,12 +104,20 @@ } const selectOne = (id) => { console.log('点击===============》', id) - router.push({ - path: '/details', + // router.push({ + // path: '/details', + // query: { + // id: id, + // }, + // }) + const detailPage = router.resolve({ + path: '/details', // 跳转的页面路由 query: { id: id, + hiddenBackFlag: true, }, }) + window.open(detailPage.href, '_blank') }