|
|
|
@ -80,6 +80,14 @@ const [registerTable, { getSelectRows,setSelectedRowKeys,setSelectedRows }] = us |
|
|
|
setSelectedRows([...props.selectedData]) |
|
|
|
}) |
|
|
|
|
|
|
|
function parseModelInfo(modelInfo?: string) { |
|
|
|
if (!modelInfo) return null |
|
|
|
try { |
|
|
|
return JSON.parse(modelInfo) |
|
|
|
} catch { |
|
|
|
return null |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// watch( |
|
|
|
@ -94,12 +102,14 @@ const [registerTable, { getSelectRows,setSelectedRowKeys,setSelectedRows }] = us |
|
|
|
<div> |
|
|
|
<BasicTable @register="registerTable"> |
|
|
|
<template #pointNumber="{ record }"> |
|
|
|
{{ (JSON.parse(record.modelInfo)).pointInfo.length }} |
|
|
|
{{ parseModelInfo(record.modelInfo)?.pointInfo?.length ?? 0 }} |
|
|
|
</template> |
|
|
|
|
|
|
|
<template #precision="{ record }"> |
|
|
|
{{ (JSON.parse(record.modelInfo)).precision }} |
|
|
|
{{ parseModelInfo(record.modelInfo)?.precision ?? '-' }} |
|
|
|
</template> |
|
|
|
</BasicTable> |
|
|
|
|
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
|