|
@ -68,6 +68,7 @@ const craftSteps = computed(() => { |
|
|
const steps = systemStore.systemStatus.tray?.find(item => item.heatModuleId === props.data.moduleCode)?.crafts?.craft?.steps |
|
|
const steps = systemStore.systemStatus.tray?.find(item => item.heatModuleId === props.data.moduleCode)?.crafts?.craft?.steps |
|
|
return steps ? JSON.parse(steps) : undefined |
|
|
return steps ? JSON.parse(steps) : undefined |
|
|
}) |
|
|
}) |
|
|
|
|
|
console.log(craftSteps.value) |
|
|
|
|
|
|
|
|
const tray = computed(() => { |
|
|
const tray = computed(() => { |
|
|
return systemStore.systemStatus.tray?.find(item => item.heatModuleId === props.data.moduleCode) |
|
|
return systemStore.systemStatus.tray?.find(item => item.heatModuleId === props.data.moduleCode) |
|
@ -132,7 +133,12 @@ defineExpose({ |
|
|
<span v-if="craft?.state === 'ERROR'" class="status-text">工艺执行错误</span> |
|
|
<span v-if="craft?.state === 'ERROR'" class="status-text">工艺执行错误</span> |
|
|
<span v-if="craft?.state === 'FINISHED'" class="status-text">工艺执行完毕</span> |
|
|
<span v-if="craft?.state === 'FINISHED'" class="status-text">工艺执行完毕</span> |
|
|
|
|
|
|
|
|
<span v-if="craft?.state === 'RUNNING' && craftSteps"> {{ craftSteps[craft.currentIndex || 0] }}</span> |
|
|
|
|
|
|
|
|
<el-tooltip v-if="craft?.state === 'RUNNING' && craftSteps && craftSteps[craft.currentIndex || 0]?.params?.description" :content="`${(craft.currentIndex || 0) + 1}.${craftSteps[craft.currentIndex || 0].params.description}`" placement="top" trigger="click"> |
|
|
|
|
|
<div class="status-description"> |
|
|
|
|
|
{{ (craft.currentIndex || 0) + 1 }}. |
|
|
|
|
|
{{ craftSteps[craft.currentIndex || 0].params.description }} |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-tooltip> |
|
|
<div class="status-operation"> |
|
|
<div class="status-operation"> |
|
|
<ft-button v-if="craft?.state === 'RUNNING'" type="primary" size="small" :click-handle="pauseCraftHandle"> |
|
|
<ft-button v-if="craft?.state === 'RUNNING'" type="primary" size="small" :click-handle="pauseCraftHandle"> |
|
|
暂停 |
|
|
暂停 |
|
@ -279,8 +285,8 @@ defineExpose({ |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
border-radius: 10px; |
|
|
border-radius: 10px; |
|
|
img { |
|
|
img { |
|
|
width: 30px; |
|
|
|
|
|
margin: 10px 0; |
|
|
|
|
|
|
|
|
width: 22px; |
|
|
|
|
|
margin: 5px 0; |
|
|
} |
|
|
} |
|
|
.status-name { |
|
|
.status-name { |
|
|
font-size: 14px; |
|
|
font-size: 14px; |
|
@ -331,4 +337,16 @@ defineExpose({ |
|
|
margin-left: 5px; |
|
|
margin-left: 5px; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.status-description { |
|
|
|
|
|
white-space: nowrap; |
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
text-overflow: ellipsis; |
|
|
|
|
|
max-width: 95%; |
|
|
|
|
|
padding: 0 3px; |
|
|
|
|
|
display: inline-block; |
|
|
|
|
|
background: #fff; |
|
|
|
|
|
border-radius: 2px; |
|
|
|
|
|
margin: 2px 0; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |