From fb31d5b20c8bac99b2e3e9cc1e69be30734fdf00 Mon Sep 17 00:00:00 2001 From: zhangjun <879913833@qq.com> Date: Thu, 29 Sep 2022 20:43:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=B7=E5=A4=96=E6=A0=87=E5=87=86=EF=BC=8C?= =?UTF-8?q?=E6=89=8B=E5=8A=A8=E6=9F=A5=E6=89=BE=EF=BC=8C=E8=B6=85=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E6=89=93=E4=B8=8D=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../InputForStandardsForForeign.vue | 29 +++++++++++----- .../searchCenter/pages/standardSearch.vue | 33 ++++++++++++++----- 2 files changed, 46 insertions(+), 16 deletions(-) diff --git a/src/components/CustomFormComponents/InputForStandardsForForeign.vue b/src/components/CustomFormComponents/InputForStandardsForForeign.vue index 23b43b317..189e44729 100644 --- a/src/components/CustomFormComponents/InputForStandardsForForeign.vue +++ b/src/components/CustomFormComponents/InputForStandardsForForeign.vue @@ -335,14 +335,27 @@ export default { }, // 点击查看 handlePreview (item) { - let routeUrl = this.$router.resolve({ - name: 'OtherBussStandardDetails', - params: { - id: item.id, - pageType: 'BUSINESS_STAND' - } - }) - window.open(routeUrl.href, '_blank') + console.log(item) + if (item.standType !== 'FOREIGN') { + let routeUrl = this.$router.resolve({ + name: 'OtherBussStandardDetails', + params: { + id: item.id, + pageType: 'BUSINESS_STAND' + } + }) + window.open(routeUrl.href, '_blank') + }else { + + let routeUrl = this.$router.resolve({ + name: 'OtherStandardDetails', + params: { + id: item.id, + pageType: 'FOREIGN_STAND' + } + }) + window.open(routeUrl.href, '_blank') + } }, getResetLawsNumRow() { this.replacePage = 1 diff --git a/src/pages/searchCenter/pages/standardSearch.vue b/src/pages/searchCenter/pages/standardSearch.vue index 4d9b9d378..948da550b 100644 --- a/src/pages/searchCenter/pages/standardSearch.vue +++ b/src/pages/searchCenter/pages/standardSearch.vue @@ -981,9 +981,13 @@ let resultdata = data.list[0]['groupdata'] for (let i = 0; i < seniortype.length; i++) { let nowdata = [{}] + if (typeof this.searchOptions[seniortype[i]] !== 'undefined') { nowdata = this.searchOptions[seniortype[i]].options } + if (typeof this.searchOptions['NYLXCLASS'] !== 'undefined' && seniortype[i] === 'NYLX') { + nowdata = this.searchOptions['NYLXCLASS'].options + } let renameType if (seniortype[i] === 'selectIndex') { for (let j = 0; j < nowdata.length; j++) { @@ -1001,19 +1005,32 @@ renameType = seniortype[i] } let resultsubdata = resultdata[renameType] || {} - console.log(resultsubdata) + console.log('sssss',resultsubdata) let countAll = 0 if (nowdata) { - console.log(nowdata) - for (let ji = 0; ji < nowdata.length; ji++) { - if (resultsubdata[nowdata[ji].value] === undefined) { - nowdata[ji].number = 0 - } else { - nowdata[ji].number = resultsubdata[nowdata[ji].value] - countAll += Number(resultsubdata[nowdata[ji].value]) + if (renameType === 'NYLX'){ + for (let ji = 0; ji < nowdata.length; ji++) { + if (resultsubdata[nowdata[ji].label] === undefined) { + nowdata[ji].number = 0 + } else { + nowdata[ji].number = resultsubdata[nowdata[ji].label] + countAll += Number(resultsubdata[nowdata[ji].label]) + } + console.log('alllllllllllllllllllllllll' + countAll) + } + }else { + for (let ji = 0; ji < nowdata.length; ji++) { + if (resultsubdata[nowdata[ji].label] === undefined) { + nowdata[ji].number = 0 + } else { + nowdata[ji].number = resultsubdata[nowdata[ji].value] + countAll += Number(resultsubdata[nowdata[ji].value]) + } } } nowdata[0].number = countAll + console.log('aaaaa',nowdata) + } } }