修改bug 52212 重点标准跟踪清单,要能跳转至标准的详情页
This commit is contained in:
@@ -83,13 +83,18 @@
|
|||||||
width="250"
|
width="250"
|
||||||
label="标准编号/政策编号"
|
label="标准编号/政策编号"
|
||||||
align="center">
|
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>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="lawName"
|
prop="lawName"
|
||||||
label="标准名称/政策名称"
|
label="标准名称/政策名称"
|
||||||
align="center"
|
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>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="productType"
|
prop="productType"
|
||||||
@@ -893,6 +898,46 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
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) {
|
reImplRequire(row, column, cellValue, index) {
|
||||||
let str = ''
|
let str = ''
|
||||||
this.attrTypeOptions.forEach((item, index) => {
|
this.attrTypeOptions.forEach((item, index) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user