From 00d277dd39d1c1f7f9d8e28980bbea5a41437bfe Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Fri, 16 Dec 2022 17:27:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E9=97=AE=E9=A2=98=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/AbilityRanking.vue | 12 +- .../components/CapabilityRequirements.vue | 12 +- .../newHome/components/LatestCapabilities.vue | 36 +- .../newHome/components/PopularAbility.vue | 537 +++++++++--------- .../components/RecommendationAbility.vue | 12 +- 5 files changed, 325 insertions(+), 284 deletions(-) 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') }