|
@ -68,7 +68,7 @@ const loading = ref(false) |
|
|
const queryCraftStatus = () => { |
|
|
const queryCraftStatus = () => { |
|
|
loading.value = true |
|
|
loading.value = true |
|
|
craftstatus().then((res) => { |
|
|
craftstatus().then((res) => { |
|
|
console.log('rs====', res) |
|
|
|
|
|
|
|
|
loading.value = false |
|
|
if (res && res.length) { |
|
|
if (res && res.length) { |
|
|
const uniqueData: CraftTypes.CraftState[] = [] |
|
|
const uniqueData: CraftTypes.CraftState[] = [] |
|
|
const idMap: Record<string | number, string | boolean> = {} |
|
|
const idMap: Record<string | number, string | boolean> = {} |
|
@ -95,7 +95,6 @@ const queryCraftStatusByHeatId = (heatId: string) => { |
|
|
if (res.state === 'FINISHED' || res.state === 'ERROR') { |
|
|
if (res.state === 'FINISHED' || res.state === 'ERROR') { |
|
|
clearInterval(byHeatIdTimes.value) |
|
|
clearInterval(byHeatIdTimes.value) |
|
|
} |
|
|
} |
|
|
loading.value = false |
|
|
|
|
|
onHandleSteps(res.steps) |
|
|
onHandleSteps(res.steps) |
|
|
scrollToBottom() |
|
|
scrollToBottom() |
|
|
}) |
|
|
}) |
|
|