feat: 完善仓库建筑绑定、质检预警规则与大屏展示

这个提交包含在:
wikiboss
2026-10-28 17:30:49 +08:00
父节点 d4ff221fa3
当前提交 ffff286274
共有 18 个文件被更改,包括 614 次插入 和 318 次删除

查看文件

@@ -799,6 +799,13 @@ class TestingModel extends Model
],
];
foreach ($typeArr as &$type) {
foreach ($type['content'] as &$item) {
$item['direction'] = \app\common\library\QualityRule::direction($item);
}
unset($item);
}
unset($type);
return $typeArr;
}
@@ -914,6 +921,7 @@ class TestingModel extends Model
'val' => $v['val'],
'warning' => $v['warning'],
'alert' => $v['alert'],
'direction' => \app\common\library\QualityRule::direction($v),
'test_date' => $data['test_date'],
'year' => $data['year'],
'season' => $data['season'],
@@ -956,6 +964,7 @@ class TestingModel extends Model
'val' => $v['val'],
'warning' => $v['warning'],
'alert' => $v['alert'],
'direction' => \app\common\library\QualityRule::direction($v),
'test_date' => $data['test_date'],
'year' => $data['year'],
'season' => $data['season'],
@@ -1013,4 +1022,4 @@ class TestingModel extends Model
});
}
}
}