From eac09c94225f901484065fce67f857b0985cef33 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Thu, 28 Sep 2023 11:20:50 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9=E5=B7=B2=E5=8F=91?= =?UTF-8?q?=E5=88=86=E4=BA=AB=EF=BC=8C=E5=B7=B2=E6=94=B6=E5=88=86=E4=BA=AB?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=8A=A8=E6=80=81=E6=B6=88=E6=81=AF=E8=AF=A6?= =?UTF-8?q?=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../receivedShare/ReceivedShare.vue | 37 ++++++++++++------- .../personalCenter/sentShare/SentShare.vue | 37 ++++++++++++------- 2 files changed, 48 insertions(+), 26 deletions(-) diff --git a/src/views/personalCenter/receivedShare/ReceivedShare.vue b/src/views/personalCenter/receivedShare/ReceivedShare.vue index 72f4830a..59d4fddc 100644 --- a/src/views/personalCenter/receivedShare/ReceivedShare.vue +++ b/src/views/personalCenter/receivedShare/ReceivedShare.vue @@ -53,7 +53,7 @@ {{ text || text === 0 ? text : global.emptyLine }} - {{ text }} + {{ text }} {{ text || text === 0 ? text : global.emptyLine }} @@ -120,19 +120,30 @@ export default { handleGoDetail (record) { let path = '' // 需要先判断是哪种标准 - if (record.source === '1') { - path = '/standardRegulationLibrary/DomesticStandardDetail' - } else if (record.source === '2') { - path = '/standardRegulationLibrary/OverseasStandardDetail' - } else if (record.source === '3') { - path = '/enterpriseStandardLibrary/enterpriseStandardDetail' - } - this.$openPageNewSheet({ - path: path, - query: { - id: record.standardId + if (['1', '2', '3'].includes(record.source)) { + if (record.source === '1') { + path = '/standardRegulationLibrary/DomesticStandardDetail' + } else if (record.source === '2') { + path = '/standardRegulationLibrary/OverseasStandardDetail' + } else if (record.source === '3') { + path = '/enterpriseStandardLibrary/enterpriseStandardDetail' } - }) + this.$openPageNewSheet({ + path: path, + query: { + id: record.standardId + } + }) + } else if (record.source === '4') { + // 是动态消息 + path = '/standardRegulationLibrary/DynamicMessageDetail' + this.$router.push({ + path: path, + query: { + id: record.standardId + } + }) + } } } } diff --git a/src/views/personalCenter/sentShare/SentShare.vue b/src/views/personalCenter/sentShare/SentShare.vue index ee19ce05..94773347 100644 --- a/src/views/personalCenter/sentShare/SentShare.vue +++ b/src/views/personalCenter/sentShare/SentShare.vue @@ -53,7 +53,7 @@ {{ text || text === 0 ? text : global.emptyLine }} - {{ text }} + {{ text }} {{ text || text === 0 ? text : global.emptyLine }} @@ -121,19 +121,30 @@ export default { handleGoDetail (record) { let path = '' // 需要先判断是哪种标准 - if (record.source === '1') { - path = '/standardRegulationLibrary/DomesticStandardDetail' - } else if (record.source === '2') { - path = '/standardRegulationLibrary/OverseasStandardDetail' - } else if (record.source === '3') { - path = '/enterpriseStandardLibrary/enterpriseStandardDetail' - } - this.$openPageNewSheet({ - path: path, - query: { - id: record.standardId + if (['1', '2', '3'].includes(record.source)) { + if (record.source === '1') { + path = '/standardRegulationLibrary/DomesticStandardDetail' + } else if (record.source === '2') { + path = '/standardRegulationLibrary/OverseasStandardDetail' + } else if (record.source === '3') { + path = '/enterpriseStandardLibrary/enterpriseStandardDetail' } - }) + this.$openPageNewSheet({ + path: path, + query: { + id: record.standardId + } + }) + } else if (record.source === '4') { + // 是动态消息 + path = '/standardRegulationLibrary/DynamicMessageDetail' + this.$router.push({ + path: path, + query: { + id: record.standardId + } + }) + } } } }