diff --git a/src/views/modules/sampleTracking/projectProofTracking.vue b/src/views/modules/sampleTracking/projectProofTracking.vue index dcfa1a4..2d8f115 100644 --- a/src/views/modules/sampleTracking/projectProofTracking.vue +++ b/src/views/modules/sampleTracking/projectProofTracking.vue @@ -3302,10 +3302,21 @@ export default { pushDate(item.oldActualDate) }) - if (dateList.length === 0) { + if (dateList.length <= 1) { return '' } - return dateList.join('\n') + // tooltip 只展示历史日期,不展示最近一次日期(当前值)以避免重复。 + const latestDate = dateList.reduce((max, currentDate) => { + if (!max || currentDate > max) { + return currentDate + } + return max + }, '') + const historyDateList = dateList.filter(item => item !== latestDate) + if (historyDateList.length === 0) { + return '' + } + return historyDateList.join('\n') }, isProcessComplete (row, processCol) { if (!row || !processCol) {