This commit is contained in:
宋伟佳
2021-11-29 15:03:43 +08:00
parent ccbe352cf0
commit f00ad24180
6 changed files with 160 additions and 237 deletions
@@ -157,7 +157,15 @@
show-overflow-tooltip
prop=""
width="180px"
label="合规评估结果">
label="合规性情况">
<template slot-scope="scope">
<!-- <el-button @click="changeState(scope.row)">符合性状态</el-button>-->
<div class="table-jump" @click="changeState(scope.row)">
<div v-if="scope.row.sarState === 1">符合</div>
<div v-if="scope.row.sarState === 2">不符合</div>
<div v-if="scope.row.sarState === 3"></div>
</div>
</template>
</el-table-column>
</el-table>
<pagination
@@ -510,6 +518,19 @@ export default {
}
},
methods: {
changeState (row) {
console.log(row);
let routeUrl = this.$router.resolve({
name: 'ComplianceDetails',
query: {
sarId: this.saveSarId,
productId: row.productId,
sarType: row.standType,
fromPage: 'product'
}
})
window.open(routeUrl.href, '_blank')
},
//搜索清单
searchSarAccess() {
this.pageDo = 1