标准比对--比对页面点击标准号、标准名称应跳转至详情页

This commit is contained in:
Mr.Z
2021-08-06 10:38:43 +08:00
parent 72d1ef734c
commit 5629302861
@@ -57,8 +57,8 @@
label="标准号/政策号"
align="center">
<template slot-scope="scope">
<div v-if="scope.row.standId != null && scope.row.standId !== ''">{{scope.row.showNumber}}</div>
<div v-else>{{scope.row.standNumSplit}}</div>
<a class="table-jump"
@click="handlePreview(scope.row)">{{ scope.row.showNumber }}</a>
</template>
</el-table-column>
<el-table-column
@@ -66,8 +66,8 @@
label="标准名称/政策名称"
align="center">
<template slot-scope="scope">
<div v-if="scope.row.standId != null && scope.row.standId !== ''">{{scope.row.standName}}</div>
<div v-else>{{scope.row.standNameSplit}}</div>
<a class="table-jump"
@click="handlePreview(scope.row)">{{ scope.row.standName }}</a>
</template>
</el-table-column>
<el-table-column
@@ -146,8 +146,8 @@
label="标准号/政策号"
align="center">
<template slot-scope="scope">
<div v-if="scope.row.standId != null && scope.row.standId !== ''">{{scope.row.showNumber}}</div>
<div v-else>{{scope.row.standNumSplit}}</div>
<a class="table-jump"
@click="handlePreview(scope.row)">{{ scope.row.showNumber }}</a>
</template>
</el-table-column>
<el-table-column
@@ -155,8 +155,8 @@
label="标准名称/政策名称"
align="center">
<template slot-scope="scope">
<div v-if="scope.row.standId != null && scope.row.standId !== ''">{{scope.row.standName}}</div>
<div v-else>{{scope.row.standNameSplit}}</div>
<a class="table-jump"
@click="handlePreview(scope.row)">{{ scope.row.standName }}</a>
</template>
</el-table-column>
<el-table-column
@@ -266,6 +266,17 @@ export default {
// this.selectedSplitStandList2 = []
// this.selectedSplitStandList2.push(this.addSpiltStandList2[0])
},
//点击查看详情
handlePreview(item) {
let routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.standId,
pageType: 'INLAND_STAND'
}
})
window.open(routeUrl.href, '_blank')
},
// 条款比对
addStandCompareHis () {
return new Promise((resolve, reject) => {