海外标准,手动查找,超链接打不开

This commit is contained in:
zhangjun
2022-09-29 20:43:24 +08:00
parent 77c511a59d
commit fb31d5b20c
2 changed files with 46 additions and 16 deletions
@@ -335,14 +335,27 @@ export default {
}, },
// 点击查看 // 点击查看
handlePreview (item) { handlePreview (item) {
let routeUrl = this.$router.resolve({ console.log(item)
name: 'OtherBussStandardDetails', if (item.standType !== 'FOREIGN') {
params: { let routeUrl = this.$router.resolve({
id: item.id, name: 'OtherBussStandardDetails',
pageType: 'BUSINESS_STAND' params: {
} id: item.id,
}) pageType: 'BUSINESS_STAND'
window.open(routeUrl.href, '_blank') }
})
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() { getResetLawsNumRow() {
this.replacePage = 1 this.replacePage = 1
@@ -981,9 +981,13 @@
let resultdata = data.list[0]['groupdata'] let resultdata = data.list[0]['groupdata']
for (let i = 0; i < seniortype.length; i++) { for (let i = 0; i < seniortype.length; i++) {
let nowdata = [{}] let nowdata = [{}]
if (typeof this.searchOptions[seniortype[i]] !== 'undefined') { if (typeof this.searchOptions[seniortype[i]] !== 'undefined') {
nowdata = this.searchOptions[seniortype[i]].options nowdata = this.searchOptions[seniortype[i]].options
} }
if (typeof this.searchOptions['NYLXCLASS'] !== 'undefined' && seniortype[i] === 'NYLX') {
nowdata = this.searchOptions['NYLXCLASS'].options
}
let renameType let renameType
if (seniortype[i] === 'selectIndex') { if (seniortype[i] === 'selectIndex') {
for (let j = 0; j < nowdata.length; j++) { for (let j = 0; j < nowdata.length; j++) {
@@ -1001,19 +1005,32 @@
renameType = seniortype[i] renameType = seniortype[i]
} }
let resultsubdata = resultdata[renameType] || {} let resultsubdata = resultdata[renameType] || {}
console.log(resultsubdata) console.log('sssss',resultsubdata)
let countAll = 0 let countAll = 0
if (nowdata) { if (nowdata) {
console.log(nowdata) if (renameType === 'NYLX'){
for (let ji = 0; ji < nowdata.length; ji++) { for (let ji = 0; ji < nowdata.length; ji++) {
if (resultsubdata[nowdata[ji].value] === undefined) { if (resultsubdata[nowdata[ji].label] === undefined) {
nowdata[ji].number = 0 nowdata[ji].number = 0
} else { } else {
nowdata[ji].number = resultsubdata[nowdata[ji].value] nowdata[ji].number = resultsubdata[nowdata[ji].label]
countAll += Number(resultsubdata[nowdata[ji].value]) 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 nowdata[0].number = countAll
console.log('aaaaa',nowdata)
} }
} }
} }