|
|
@ -39,7 +39,7 @@ |
|
|
|
<div class="heat_temperature" @click="setTemperature"> |
|
|
|
<template v-if="trayInfo?.id"> |
|
|
|
<div class="target_temp">目标温度: {{ trayInfo.temperature }}℃</div> |
|
|
|
<div class="heating">加热中</div> |
|
|
|
<div class="heating" :style="{color:temperature_color}">{{ trayInfo.heatAearStatus.isHeating ? '加热中' : '未加热' }}</div> |
|
|
|
</template> |
|
|
|
<template v-else> |
|
|
|
<div class="target_temp set_temp">设置目标温度</div> |
|
|
@ -49,7 +49,7 @@ |
|
|
|
<div class="flex items-center py-4 justify-between px-2"> |
|
|
|
<div class="temp_text">{{ trayInfo.heatAearStatus.temperature }}</div> |
|
|
|
<button |
|
|
|
class="btn-light text-sm px-4 text_choose" |
|
|
|
:class="`btn-light text-sm px-4 text_choose ${trayInfo.isSelect ? 'text_color' : ''}`" |
|
|
|
@click.stop="onSelectTray" |
|
|
|
> |
|
|
|
选择 |
|
|
@ -114,6 +114,7 @@ const props = defineProps({ |
|
|
|
tubeIndex: Number, |
|
|
|
}); |
|
|
|
const emits = defineEmits(["onSelectedTray", "onSetHeatAreaTemp", 'onSelectCraft']); |
|
|
|
|
|
|
|
const selectedBackgroundColor = '#189952' |
|
|
|
const readyColor = '#EE8223' |
|
|
|
const executingColor = '#14A656' |
|
|
@ -134,6 +135,15 @@ const trayTempType = ref(false); |
|
|
|
const tempVisible = ref(false); |
|
|
|
//加热区信息 |
|
|
|
let trayInfo = ref<any>(props.heatInfo || {}); |
|
|
|
let temperature_color = ref('#1677FF') |
|
|
|
watch(()=>trayInfo, (newVal:any) =>{ |
|
|
|
if(newVal.heatAearStatus.isHeating){ |
|
|
|
temperature_color.value = '#FE0A0A' |
|
|
|
}else{ |
|
|
|
temperature_color.value = '#1677FF' |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
const reSet = (newVal:any) => { |
|
|
|
let heatAreaData = {...newVal} |
|
|
|
if(heatAreaData.heatAearStatus.trayStatus){ |
|
|
@ -359,6 +369,9 @@ const onHandleSelectedCraft = (craftData:any) => { |
|
|
|
.text_choose{ |
|
|
|
position: relative; |
|
|
|
z-index: 111; |
|
|
|
|
|
|
|
} |
|
|
|
.text_color{ |
|
|
|
background: #6893ff; |
|
|
|
color: #ffffff; |
|
|
|
} |
|
|
|