|
@@ -112,12 +112,12 @@ function WaterInTable(props) {
|
|
|
{
|
|
|
title: '差值',
|
|
|
// width: '15%',
|
|
|
- dataIndex: 'current_val',
|
|
|
+ dataIndex: 'result_val',
|
|
|
},
|
|
|
{
|
|
|
title: '时间',
|
|
|
// width: '15%',
|
|
|
- dataIndex: 'create_time',
|
|
|
+ dataIndex: 'created_time',
|
|
|
render: (text) => {
|
|
|
if (text) {
|
|
|
return dayjs(text).format('HH:mm:ss');
|
|
@@ -130,11 +130,14 @@ function WaterInTable(props) {
|
|
|
width: '30%',
|
|
|
render: (record) => (
|
|
|
<ThresholdDetail
|
|
|
- current={record.current_val || 0}
|
|
|
+ current={record.result_val || 0}
|
|
|
data={{
|
|
|
JsonNumThreshold: {
|
|
|
exception: [
|
|
|
- { ThresholdValue: record?.thresholds, ThresholdType: 1 },
|
|
|
+ {
|
|
|
+ ThresholdValue: record?.threshold_error,
|
|
|
+ ThresholdType: record.result_val > 0 ? 1 : 2,
|
|
|
+ },
|
|
|
],
|
|
|
},
|
|
|
Type: 2,
|
|
@@ -146,7 +149,7 @@ function WaterInTable(props) {
|
|
|
title: '状态',
|
|
|
dataIndex: 'status',
|
|
|
width: 140,
|
|
|
- render: (status) => {
|
|
|
+ render: (status, record) => {
|
|
|
switch (status) {
|
|
|
case -1:
|
|
|
case 0:
|
|
@@ -167,10 +170,7 @@ function WaterInTable(props) {
|
|
|
style={{ background: '#FF8600' }}
|
|
|
/>
|
|
|
异常
|
|
|
- <a style={{ marginLeft: 20 }}>
|
|
|
- 关联任务
|
|
|
- <MandateBtn relationId={record.id} />
|
|
|
- </a>
|
|
|
+ <MandateBtn relationId={record.id} />
|
|
|
</div>
|
|
|
);
|
|
|
case 2:
|