修改bug 52212 重点标准跟踪清单,要能跳转至标准的详情页

This commit is contained in:
zhangyichen
2022-04-01 17:51:05 +08:00
parent e5777d93b7
commit ddef09c751
@@ -83,13 +83,18 @@
width="250"
label="标准编号/政策编号"
align="center">
<template slot-scope="scope">
<a @click="handlePreviewAA(scope.row)" style="cursor: pointer">{{ scope.row.lawCode }}</a>
</template>
</el-table-column>
<el-table-column
prop="lawName"
label="标准名称/政策名称"
align="center"
width="300px"
>
width="300px">
<template slot-scope="scope">
<a @click="handlePreviewAA(scope.row)" style="cursor: pointer">{{ scope.row.lawName }}</a>
</template>
</el-table-column>
<el-table-column
prop="productType"
@@ -893,6 +898,46 @@ export default {
}
},
methods: {
handlePreviewAA(item) {
if (item.dataSource === "INLAND"){
let routeUrlINLAND = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.lawId,
pageType: 'INLAND_STAND'
}
})
window.open(routeUrlINLAND.href, '_blank')
}else if (item.dataSource === "FOREIGN"){
let routeUrlFOREIGN = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.lawId,
pageType: 'FOREIGN_STAND'
}
})
window.open(routeUrlFOREIGN.href, '_blank')
} else if (item.dataSource !== undefined){
let routeUrlLAWS = this.$router.resolve({
name: 'OtherLawsStandDetails',
params: {
id: item.lawId,
pageType: 'LAWS_STAND'
}
})
window.open(routeUrlLAWS.href, '_blank')
}else {
let routeUrlBUSINESS = this.$router.resolve({
name: 'OtherBussStandardDetails',
params: {
id: item.lawId,
pageType: 'BUSINESS_STAND'
}
})
window.open(routeUrlBUSINESS.href, '_blank')
}
},
reImplRequire(row, column, cellValue, index) {
let str = ''
this.attrTypeOptions.forEach((item, index) => {