diff --git a/src/components/MeasureItem.tsx b/src/components/MeasureItem.tsx index d41ecf9..542b08f 100644 --- a/src/components/MeasureItem.tsx +++ b/src/components/MeasureItem.tsx @@ -17,12 +17,24 @@ export default function MeasureItem({ item: Measurement; onDetail?: () => void; }) { + const stateText = () => { + if (item.syncStatus === 'wait') { + return 等待中; + } else if (item.syncStatus === 'fail') { + return 上传失败; + } else if (item.syncStatus === 'finish') { + return 上传完成; + } + return null; + }; + const direct = XB_CODES.find((dire) => dire.value === item.direction); return (

{item.name}

+ {stateText()}

{`${item.lineName}`}