fix:修改计划添加问题

This commit is contained in:
zhaohy
2024-08-30 11:38:11 +08:00
parent a7400bae18
commit 915358dbec

View File

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