feat: 完善仓库建筑绑定、质检预警规则与大屏展示
这个提交包含在:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户