Browse Source

fix:修改计划添加

temp
zhaohy 3 months ago
parent
commit
0db717594d
  1. 17
      hx-ai-intelligent/src/view/equipmentControl/planToAdd/index.vue

17
hx-ai-intelligent/src/view/equipmentControl/planToAdd/index.vue

@ -8,12 +8,7 @@
<template v-if="column.dataIndex === 'executeStatus'">
<div
:style="{
color: {
'1': 'rgba(255, 165, 0, 1)',
'2': 'rgb(57, 215, 187)',
'3': 'rgb(255, 0, 0)',
'4': '#ccc',
}[record.executeStatus.value],
color: getColor(record),
}">
{{ record.executeStatus.label }}</div
>
@ -70,6 +65,14 @@
? record.startTime.substring(0, 10) + ' - ' + record.endTime.substring(0, 10)
: '未配置时间';
};
const getColor = (record: any) => {
return {
'1': 'rgba(255, 165, 0, 1)',
'2': 'rgb(57, 215, 187)',
'3': 'rgb(255, 0, 0)',
'4': '#ccc',
}[record.executeStatus.value];
};
const disabledDate = (current: Dayjs) => {
// Can not select days before today and today
return current && current < dayjs().endOf('day');
@ -116,7 +119,7 @@
}
},
});
const config = ref(null);
const config = ref({});
const enumDataList: any = () => {
return getEnum({ params: { enumType: 'DeviceCtrlType' } });
};

Loading…
Cancel
Save