|
|
@ -6,7 +6,6 @@ import icon_uploading from '../assets/icon_upload_1.svg'; |
|
|
|
import icon_uploaded from '../assets/icon_upload_2.svg'; |
|
|
|
import { Measurement } from '../services/apiTypes'; |
|
|
|
|
|
|
|
|
|
|
|
export type UpdateState = 'idle' | 'pending' | 'uploading' | 'uploaded'; |
|
|
|
|
|
|
|
export default function MeasureItem({ |
|
|
@ -41,6 +40,7 @@ export default function MeasureItem({ |
|
|
|
</main> |
|
|
|
<footer> |
|
|
|
<span className="text-sm text-[#b7b7b7]">{item.createTime}</span> |
|
|
|
{item.syncStatus === 'fail' && item.errorMsg && <p className='text-xs text-[red] whitespace-pre-wrap'>{item.errorMsg}</p>} |
|
|
|
</footer> |
|
|
|
</main> |
|
|
|
<aside className="flex items-center" onClick={onDetail}> |
|
|
@ -95,7 +95,7 @@ export function MeasureItemEx(props: { |
|
|
|
<h1 className="text-[15px] font-medium ">{props.item.name}</h1> |
|
|
|
</header> |
|
|
|
<main className="flex my-2"> |
|
|
|
<p className="flex-1 text-sm ">{props.item.extraDescObj?.gwdCode}</p> |
|
|
|
<p className="flex-1 text-sm ">{props.item.extraDescObj?.gwdCode}</p> |
|
|
|
<p className="flex-1 text-sm ">{props.item.extraDescObj?.xmCode}</p> |
|
|
|
<p className="flex-1 text-sm ">{props.item.extraDescObj?.xbCode}</p> |
|
|
|
</main> |
|
|
|