diff --git a/src/components/RealtimeTable.vue b/src/components/RealtimeTable.vue index 70c0da8..c47171f 100644 --- a/src/components/RealtimeTable.vue +++ b/src/components/RealtimeTable.vue @@ -6,23 +6,25 @@ import { useWsStore } from "../store"; const listData = ref([]); const store = useWsStore(); store.$subscribe((mutation, state) => { - listData.value = (state.data2.lineDetailData || Array(3).fill({})).map((item, index) => ({ - productLine: item.productLine || "---", - mbt: item.edgingInput || "---", - mbb: item.edgingOutput || "---", - dkt: item.drillingInput || "---", - dkb: item.drillingOutput || "---", - dmt: item.coatingInput || "---", - dmb: item.coatingOutput || "---", - syt: item.silkInput || "---", - syb: item.silkOutput || "---", - ght: item.solidificationInput || "---", - ghb: item.solidificationOutput || "---", - gh1: item.temperingInput || "---", - gh2: item.temperingOutput || "---", - bzt: item.finalInput || "---", - bzb: item.finalOutput || "---", - })); + listData.value = (state.data2.lineDetailData || Array(3).fill({})).map( + (item, index) => ({ + productLine: item.productLine || "---", + mbt: item.edgingInput || "---", + mbb: item.edgingOutput || "---", + dkt: item.drillingInput || "---", + dkb: item.drillingOutput || "---", + dmt: item.coatingInput || "---", + dmb: item.coatingOutput || "---", + syt: item.silkInput || "---", + syb: item.silkOutput || "---", + ght: item.solidificationInput || "---", + ghb: item.solidificationOutput || "---", + gh1: item.temperingInput || "---", + gh2: item.temperingOutput || "---", + bzt: item.finalInput || "---", + bzb: item.finalOutput || "---", + }) + ); }); @@ -57,7 +59,7 @@ store.$subscribe((mutation, state) => {