[update] 修改bug87794

This commit is contained in:
lideqin
2024-07-31 17:57:55 +08:00
parent 28a61e4e00
commit 8474599390
@@ -35,6 +35,16 @@
:pagination="false"
:loading="loading">
<!-- 标准号标准名称 -->
<template v-slot:toDetail="{text, record}">
<a-tooltip overlay-class-name="tooltip-style">
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
<a v-if="text && record.standardId" class="link-a" @click="detailClick(record)">{{ text }}</a>
<div v-else-if="text" class="table-text">{{ text || text === 0 ? text : global.emptyLine }}</div>
<div v-else class="table-text">{{ global.emptyLine }}</div>
</a-tooltip>
</template>
<!-- 分解单来源是添加标准的标准的话显示下拉框否则显示上传的分解单或者空 -->
<template v-slot:splitFileSource="{record}" class="action-span-cell">
<!-- 通过添加标准新增的 -->
@@ -527,6 +537,15 @@ export default {
})
return data
},
// 跳转详情
detailClick (record) {
this.$openPageNewSheet({
path: '/standardRegulationLibrary/foreignStandardDetailPage',
query: {
id: record.standardId
}
})
},
/**
* 获取分解单来源下拉
* @param standardId - 标准id