| | |
| | | return '未设置' |
| | | } |
| | | const formatted = formatDateTime(this.taskDetail.plannedStartTime, 'YYYY-MM-DD HH:mm') |
| | | // 如果年份是1900,表示无效日期,显示为未设置 |
| | | if (formatted && formatted.startsWith('1900')) { |
| | | return '未设置' |
| | | // 如果年份是1900或1970,表示无效日期,显示为未分配时间 |
| | | if (formatted && (formatted.startsWith('1900') || formatted.startsWith('1970'))) { |
| | | return '未分配时间' |
| | | } |
| | | return formatted |
| | | }, |
| | |
| | | return '未设置' |
| | | } |
| | | const formatted = formatDateTime(this.taskDetail.plannedEndTime, 'YYYY-MM-DD HH:mm') |
| | | // 如果年份是1900,表示无效日期,显示为未设置 |
| | | if (formatted && formatted.startsWith('1900')) { |
| | | return '未设置' |
| | | // 如果年份是1900或1970,表示无效日期,显示为未分配时间 |
| | | if (formatted && (formatted.startsWith('1900') || formatted.startsWith('1970'))) { |
| | | return '未分配时间' |
| | | } |
| | | return formatted |
| | | }, |
| | |
| | | return '未设置' |
| | | } |
| | | const formatted = formatDateTime(this.taskDetail.actualStartTime, 'YYYY-MM-DD HH:mm') |
| | | // 如果年份是1900,表示无效日期,显示为未设置 |
| | | if (formatted && formatted.startsWith('1900')) { |
| | | return '未设置' |
| | | // 如果年份是1900或1970,表示无效日期,显示为未分配时间 |
| | | if (formatted && (formatted.startsWith('1900') || formatted.startsWith('1970'))) { |
| | | return '未分配时间' |
| | | } |
| | | return formatted |
| | | }, |
| | |
| | | return '未设置' |
| | | } |
| | | const formatted = formatDateTime(this.taskDetail.actualEndTime, 'YYYY-MM-DD HH:mm') |
| | | // 如果年份是1900,表示无效日期,显示为未设置 |
| | | if (formatted && formatted.startsWith('1900')) { |
| | | return '未设置' |
| | | // 如果年份是1900或1970,表示无效日期,显示为未分配时间 |
| | | if (formatted && (formatted.startsWith('1900') || formatted.startsWith('1970'))) { |
| | | return '未分配时间' |
| | | } |
| | | return formatted |
| | | } |