1
This commit is contained in:
@@ -117,6 +117,27 @@ export default {
|
|||||||
'duplicate': { text: '重复投递', color: 'warning' }
|
'duplicate': { text: '重复投递', color: 'warning' }
|
||||||
}
|
}
|
||||||
const status = statusMap[params.row.applyStatus] || { text: params.row.applyStatus, color: 'default' }
|
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)
|
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('h3', { style: { marginTop: '20px', marginBottom: '15px', color: '#2d8cf0' } }, '投递状态'),
|
||||||
h('p', [h('strong', '投递状态: '), this.getApplyStatusText(row.applyStatus)]),
|
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', '反馈状态: '), this.getFeedbackStatusText(row.feedbackStatus)]),
|
||||||
h('p', [h('strong', '投递时间: '), row.applyTime || '未知']),
|
h('p', [h('strong', '投递时间: '), row.applyTime || '未知']),
|
||||||
h('p', [h('strong', '匹配度: '), `${row.matchScore || 0}%`]),
|
h('p', [h('strong', '匹配度: '), `${row.matchScore || 0}%`]),
|
||||||
|
|||||||
Reference in New Issue
Block a user