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