From 4b9b9a99c8edd72d8e80468e4f9d9ac775c4114d Mon Sep 17 00:00:00 2001 From: yanyizhou <2311759275@qq.com> Date: Tue, 16 Nov 2021 15:47:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=85=A8=E8=83=BD=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../page/listTracking.vue | 47 +++++++++++++++---- 1 file changed, 39 insertions(+), 8 deletions(-) diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listTracking.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listTracking.vue index 1a295802f..6b6a9e845 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listTracking.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listTracking.vue @@ -536,14 +536,45 @@ export default { methods: { // 点击查看 handlePreview(item) { - let routeUrl = this.$router.resolve({ - name: 'OtherStandardDetails', - params: { - id: item.id, - pageType: 'INLAND_STAND' - } - }) - window.open(routeUrl.href, '_blank') + console.log('539',item) + if (item.standType === "INLAND"){ + let routeUrlINLAND = this.$router.resolve({ + name: 'OtherStandardDetails', + params: { + id: item.id, + pageType: 'INLAND_STAND' + } + }) + window.open(routeUrlINLAND.href, '_blank') + }else if (item.standType === "FOREIGN"){ + let routeUrlFOREIGN = this.$router.resolve({ + name: 'OtherStandardDetails', + params: { + id: item.id, + pageType: 'FOREIGN_STAND' + } + }) + window.open(routeUrlFOREIGN.href, '_blank') + } else if (item.country !== undefined){ + let routeUrlLAWS = this.$router.resolve({ + name: 'OtherLawsStandDetails', + params: { + id: item.id, + pageType: 'LAWS_STAND' + } + }) + window.open(routeUrlLAWS.href, '_blank') + }else { + let routeUrlBUSINESS = this.$router.resolve({ + name: 'OtherBussStandardDetails', + params: { + id: item.id, + pageType: 'BUSINESS_STAND' + } + }) + window.open(routeUrlBUSINESS.href, '_blank') + } + }, // 将文本状态的id与name对应 setMap(data) {