This commit is contained in:
张成
2025-12-19 14:21:22 +08:00
parent 7d4aee1c77
commit 8a44c48ad4

View File

@@ -104,9 +104,9 @@ export default {
{ title: '公司名称', key: 'companyName', minWidth: 180 },
{ title: '薪资', key: 'salary', minWidth: 120 },
{ title: '地点', key: 'location', minWidth: 120 },
{
title: '投递状态',
key: 'applyStatus',
{
title: '投递状态',
key: 'applyStatus',
minWidth: 120,
render: (h, params) => {
const statusMap = {
@@ -117,6 +117,27 @@ export default {
'duplicate': { text: '重复投递', color: 'warning' }
}
const status = statusMap[params.row.applyStatus] || { text: params.row.applyStatus, color: 'default' }
// 如果是投递失败且有错误信息,显示带 tooltip 的标签
if (params.row.applyStatus === 'failed' && params.row.errorMessage) {
return h('Tooltip', {
props: {
content: params.row.errorMessage,
maxWidth: 300,
transfer: true,
placement: 'top'
}
}, [
h('Tag', { props: { color: status.color } }, [
status.text,
h('Icon', {
props: { type: 'ios-information-circle' },
style: { marginLeft: '4px' }
})
])
])
}
return h('Tag', { props: { color: status.color } }, status.text)
}
},
@@ -270,6 +291,20 @@ export default {
h('h3', { style: { marginTop: '20px', marginBottom: '15px', color: '#2d8cf0' } }, '投递状态'),
h('p', [h('strong', '投递状态: '), this.getApplyStatusText(row.applyStatus)]),
row.applyStatus === 'failed' && row.errorMessage ? h('div', { style: { marginTop: '10px', marginBottom: '10px' } }, [
h('strong', '失败原因: '),
h('p', {
style: {
whiteSpace: 'pre-wrap',
marginTop: '8px',
padding: '10px',
backgroundColor: '#fff1f0',
borderRadius: '4px',
border: '1px solid #ffccc7',
color: '#cf1322'
}
}, row.errorMessage)
]) : null,
h('p', [h('strong', '反馈状态: '), this.getFeedbackStatusText(row.feedbackStatus)]),
h('p', [h('strong', '投递时间: '), row.applyTime || '未知']),
h('p', [h('strong', '匹配度: '), `${row.matchScore || 0}%`]),