diff --git a/src/components/jero/JTable.vue b/src/components/jero/JTable.vue index 2052b361..c475803b 100644 --- a/src/components/jero/JTable.vue +++ b/src/components/jero/JTable.vue @@ -52,7 +52,7 @@ {{ operation.text }} - + @@ -80,7 +80,7 @@ {{ operation.text }} - + diff --git a/src/views/personalCenter/myCollection/MyCollection.vue b/src/views/personalCenter/myCollection/MyCollection.vue index ffd87f88..a1839f17 100644 --- a/src/views/personalCenter/myCollection/MyCollection.vue +++ b/src/views/personalCenter/myCollection/MyCollection.vue @@ -145,7 +145,7 @@ export default { this.$openPageNewSheet({ path: path, query: { - id: record.id + id: record.standardId } }) }, diff --git a/src/views/personalCenter/receivedShare/ReceivedShare.vue b/src/views/personalCenter/receivedShare/ReceivedShare.vue index 392a6c08..f1d3d6be 100644 --- a/src/views/personalCenter/receivedShare/ReceivedShare.vue +++ b/src/views/personalCenter/receivedShare/ReceivedShare.vue @@ -50,6 +50,15 @@ :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" @change="handleTableChange"> + + + + {{ record.title || record.title === 0 ? record.title : global.emptyLine }} + {{ record.title }} + {{ record.title || record.title === 0 ? record.title : global.emptyLine }} + + + @@ -92,8 +101,7 @@ export default { title: this.$t('personalCenter.receivedShare.title'), align: 'center', width: 180, - dataIndex: 'title', - scopedSlots: { customRender: 'text' } + scopedSlots: { customRender: 'titleSlot' } }, { title: this.$t('personalCenter.receivedShare.forwarder'), @@ -114,6 +122,26 @@ export default { deleteBatch: '/personal/lawsStandardSharing/deleteBatch' } } + }, + methods: { + // 点击标题跳转详情页 + 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 + } + }) + } } } diff --git a/src/views/personalCenter/sentShare/SentShare.vue b/src/views/personalCenter/sentShare/SentShare.vue index eab28a93..7a294008 100644 --- a/src/views/personalCenter/sentShare/SentShare.vue +++ b/src/views/personalCenter/sentShare/SentShare.vue @@ -50,6 +50,15 @@ :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" @change="handleTableChange"> + + + + {{ record.title || record.title === 0 ? record.title : global.emptyLine }} + {{ record.title }} + {{ record.title || record.title === 0 ? record.title : global.emptyLine }} + + + @@ -92,8 +101,7 @@ export default { title: this.$t('personalCenter.sentShare.title'), align: 'center', width: 180, - dataIndex: 'title', - scopedSlots: { customRender: 'text' } + scopedSlots: { customRender: 'titleSlot' } }, { title: this.$t('personalCenter.sentShare.recipient'), @@ -114,6 +122,26 @@ export default { deleteBatch: '/personal/lawsStandardSharing/deleteBatch' } } + }, + methods: { + // 点击标题跳转详情页 + 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 + } + }) + } } }