[update] 修改已发分享,已收分享跳转动态消息详情

This commit is contained in:
lideqin
2023-09-28 11:20:50 +08:00
parent b848349979
commit eac09c9422
2 changed files with 48 additions and 26 deletions
@@ -53,7 +53,7 @@
<template v-slot:titleSlot="{text, record}">
<a-tooltip overlay-class-name="tooltip-style">
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
<a v-if="text && record.source !== '4'" class="link-a" @click="handleGoDetail(record)">{{ text }}</a>
<a v-if="text" class="link-a" @click="handleGoDetail(record)">{{ text }}</a>
<div v-else class="table-text">{{ text || text === 0 ? text : global.emptyLine }}</div>
</a-tooltip>
</template>
@@ -120,19 +120,30 @@ export default {
handleGoDetail (record) {
let path = ''
// 需要先判断是哪种标准
if (record.source === '1') {
path = '/standardRegulationLibrary/DomesticStandardDetail'
} else if (record.source === '2') {
path = '/standardRegulationLibrary/OverseasStandardDetail'
} else if (record.source === '3') {
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
}
this.$openPageNewSheet({
path: path,
query: {
id: record.standardId
if (['1', '2', '3'].includes(record.source)) {
if (record.source === '1') {
path = '/standardRegulationLibrary/DomesticStandardDetail'
} else if (record.source === '2') {
path = '/standardRegulationLibrary/OverseasStandardDetail'
} else if (record.source === '3') {
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
}
})
this.$openPageNewSheet({
path: path,
query: {
id: record.standardId
}
})
} else if (record.source === '4') {
// 是动态消息
path = '/standardRegulationLibrary/DynamicMessageDetail'
this.$router.push({
path: path,
query: {
id: record.standardId
}
})
}
}
}
}
@@ -53,7 +53,7 @@
<template v-slot:titleSlot="{text, record}">
<a-tooltip overlay-class-name="tooltip-style">
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
<a v-if="text && record.source !== '4'" class="link-a" @click="handleGoDetail(record)">{{ text }}</a>
<a v-if="text" class="link-a" @click="handleGoDetail(record)">{{ text }}</a>
<div v-else class="table-text">{{ text || text === 0 ? text : global.emptyLine }}</div>
</a-tooltip>
</template>
@@ -121,19 +121,30 @@ export default {
handleGoDetail (record) {
let path = ''
// 需要先判断是哪种标准
if (record.source === '1') {
path = '/standardRegulationLibrary/DomesticStandardDetail'
} else if (record.source === '2') {
path = '/standardRegulationLibrary/OverseasStandardDetail'
} else if (record.source === '3') {
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
}
this.$openPageNewSheet({
path: path,
query: {
id: record.standardId
if (['1', '2', '3'].includes(record.source)) {
if (record.source === '1') {
path = '/standardRegulationLibrary/DomesticStandardDetail'
} else if (record.source === '2') {
path = '/standardRegulationLibrary/OverseasStandardDetail'
} else if (record.source === '3') {
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
}
})
this.$openPageNewSheet({
path: path,
query: {
id: record.standardId
}
})
} else if (record.source === '4') {
// 是动态消息
path = '/standardRegulationLibrary/DynamicMessageDetail'
this.$router.push({
path: path,
query: {
id: record.standardId
}
})
}
}
}
}