|
|
@ -1,7 +1,6 @@ |
|
|
|
import {getDetailList, delDetail, getDetail, getPointByUuid} from '../../../services/measure/analysis' |
|
|
|
import { useState, useEffect, useRef } from 'react' |
|
|
|
import {message, Button, type TableColumnsType, type TableProps, Modal, Table, Pagination, Input, Switch } from 'antd'; |
|
|
|
|
|
|
|
import { useNavigate } from 'react-router-dom'; |
|
|
|
import type { AnalysisReport, AnalysisResults, DetailTable, SearchParams } from "../../../services/measure/type"; |
|
|
|
import { ExclamationCircleFilled } from '@ant-design/icons'; |
|
|
@ -157,17 +156,20 @@ export default function MeasureDetail() { |
|
|
|
//获取基线
|
|
|
|
getBaseRecordPointSetByCode("6001").then(res => { |
|
|
|
if (res.success) { |
|
|
|
setIsModalOpen(true) |
|
|
|
const benchmarkShapes = JSON.parse(res.data.points) as BenchmarkShape[]; |
|
|
|
if (canvasRef.current) { |
|
|
|
console.log("解析后的基础图形数据:", benchmarkShapes); |
|
|
|
canvasRef.current.setBenchmarkData(benchmarkShapes); |
|
|
|
} |
|
|
|
setTimeout(()=>{ |
|
|
|
if (canvasRef.current) { |
|
|
|
console.log("解析后的基础图形数据:", benchmarkShapes); |
|
|
|
canvasRef.current.setBenchmarkData(benchmarkShapes); |
|
|
|
} |
|
|
|
},50) |
|
|
|
} |
|
|
|
}); |
|
|
|
getDetail({id:item.id}).then(res=>{ |
|
|
|
console.log('res==测量记录详情=', res) |
|
|
|
if(res){ |
|
|
|
setIsModalOpen(true) |
|
|
|
|
|
|
|
// navigate(`/measure/detail/${item.id}`)
|
|
|
|
//@ts-ignore
|
|
|
|
getRecordByUuid(res.data.uuid) |
|
|
|