|
|
|
|
@ -107,13 +107,13 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="发布者" min-width="150">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div class="user-info">
|
|
|
|
|
<div class="user-avatar">{{ scope.row.publisher ? scope.row.publisher.charAt(0) : '-' }}</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div style="font-weight: 600; font-size: 14px;">{{ scope.row.publisher || '-' }}</div>
|
|
|
|
|
<div style="font-size: 12px; color: #666;">{{ scope.row.publisherInfo || '-' }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="user-info">
|
|
|
|
|
<div class="user-avatar">{{ scope.row.user && scope.row.user.name ? scope.row.user.name.charAt(0) : '-' }}</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div style="font-weight: 600; font-size: 14px;">{{ scope.row.user && scope.row.user.name ? scope.row.user.name : '-' }}</div>
|
|
|
|
|
<div style="font-size: 12px; color: #666;">{{ getPublisherInfo(scope.row.user) }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="发布时间" min-width="120">
|
|
|
|
|
@ -297,6 +297,13 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
return statusMap[status] || '未知状态'
|
|
|
|
|
},
|
|
|
|
|
getPublisherInfo(user) {
|
|
|
|
|
if (!user) return '-'
|
|
|
|
|
const parts = []
|
|
|
|
|
// if (user.school) parts.push(user.school)
|
|
|
|
|
if (user.company_name) parts.push(user.company_name)
|
|
|
|
|
return parts.length > 0 ? parts.join(' · ') : '-'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 获取变化样式类
|
|
|
|
|
getChangeClass(change) {
|
|
|
|
|
|