diff --git a/hx-ai-intelligent/src/view/equipmentControl/planToAdd/index.vue b/hx-ai-intelligent/src/view/equipmentControl/planToAdd/index.vue index cbaa05d..a242929 100644 --- a/hx-ai-intelligent/src/view/equipmentControl/planToAdd/index.vue +++ b/hx-ai-intelligent/src/view/equipmentControl/planToAdd/index.vue @@ -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