feat: 体系搜索列表可查看详情

This commit is contained in:
zyn
2023-11-28 10:04:24 +08:00
parent 6df26680c8
commit 70268b9d1b
@@ -145,6 +145,9 @@
width="200"
show-overflow-tooltip
label="标准名称">
<template slot-scope="{row, column, $index}">
<a class="table-jump" style="color: #2d8cf0" @click="handlePreview(row)">{{ row.standName }}</a>
</template>
</el-table-column>
<el-table-column
prop="standState"
@@ -438,6 +441,26 @@ export default {
this.$http._getData('sys/dictype/getDicTypeListCode').then(res => {
this.dict = { ...res.data }
})
},
handlePreview (row) {
let name,pageType;
switch (row.dataSource) {
case '国内标准库':
name = 'OtherStandardDetails'
pageType = 'INLAND_STAND'
break
case '海外标准库':
name = 'OtherStandardDetails'
pageType = 'FOREIGN_STAND'
break
case '企业标准库':
name = 'OtherBussStandardDetails'
pageType = 'BUSINESS_STAND'
break
}
const id = row.standId
const routeUrl = this.$router.resolve({ name, params: { id, pageType } })
window.open(routeUrl.href, '_blank')
}
}
}