Commit 055e748e authored by 周宏民's avatar 周宏民

fix: 修改历史曲线组件参数缺少字段的情况

parent 3d311970
......@@ -579,7 +579,15 @@ const HistoryView = (props) => {
const onChangeParams = (value = {}) => {
const { dateRange, isDilute, ignoreOutliers, zoom, unit } = value;
const requestArr = [];
const acrossTables = deviceParams.map((item) => _.omit(item, ['pointAddressID']));
const acrossTables = []
deviceParams.forEach((i) => {
if(i.sensors&&i.deviceCode&&i.deviceCode) acrossTables.push(_.omit(i, ['pointAddressID']))
});
if(!acrossTables?.length){
handleTableData([]);
setChartDataSource([])
return
}
dateRange.forEach((item) => {
const param = {
isDilute,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment