|
@ -66,12 +66,16 @@ |
|
|
: '未配置时间'; |
|
|
: '未配置时间'; |
|
|
}; |
|
|
}; |
|
|
const getColor = (record: any) => { |
|
|
const getColor = (record: any) => { |
|
|
return { |
|
|
const colorMap = { |
|
|
'1': 'rgba(255, 165, 0, 1)', |
|
|
'1': 'rgba(255, 165, 0, 1)', |
|
|
'2': 'rgb(57, 215, 187)', |
|
|
'2': 'rgb(57, 215, 187)', |
|
|
'3': 'rgb(255, 0, 0)', |
|
|
'3': 'rgb(255, 0, 0)', |
|
|
'4': '#ccc', |
|
|
'4': '#ccc', |
|
|
}[record.executeStatus.value]; |
|
|
}; |
|
|
|
|
|
if (record.executeStatus) { |
|
|
|
|
|
return colorMap[record.executeStatus.value] || '#000'; |
|
|
|
|
|
} |
|
|
|
|
|
return '#000'; |
|
|
}; |
|
|
}; |
|
|
const disabledDate = (current: Dayjs) => { |
|
|
const disabledDate = (current: Dayjs) => { |
|
|
// Can not select days before today and today |
|
|
// Can not select days before today and today |
|
|