|
@@ -141,7 +141,7 @@ function Detail(props) {
|
|
</Row>
|
|
</Row>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
- <ModuleTitle title="设备自检" />
|
|
|
|
|
|
+ <ModuleTitle title="设备自检报告" />
|
|
{/* 设备自检报告 */}
|
|
{/* 设备自检报告 */}
|
|
<ReportCom
|
|
<ReportCom
|
|
sendMessageToUnity={sendMessageToUnity}
|
|
sendMessageToUnity={sendMessageToUnity}
|
|
@@ -151,7 +151,7 @@ function Detail(props) {
|
|
key="extend"
|
|
key="extend"
|
|
type={'extend'}
|
|
type={'extend'}
|
|
userList={userList}
|
|
userList={userList}
|
|
- title={'设备自检报告'}
|
|
|
|
|
|
+ title={'设备自检'}
|
|
></ReportCom>
|
|
></ReportCom>
|
|
|
|
|
|
{/* 液位异常 */}
|
|
{/* 液位异常 */}
|
|
@@ -311,7 +311,6 @@ export function DeviceTable(props) {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '巡检项',
|
|
title: '巡检项',
|
|
- width: '20%',
|
|
|
|
dataIndex: 'TemplateItem.Name',
|
|
dataIndex: 'TemplateItem.Name',
|
|
},
|
|
},
|
|
// {
|
|
// {
|
|
@@ -321,7 +320,6 @@ export function DeviceTable(props) {
|
|
// },
|
|
// },
|
|
{
|
|
{
|
|
title: '设定值范围',
|
|
title: '设定值范围',
|
|
- width: '30%',
|
|
|
|
render: (record) => (
|
|
render: (record) => (
|
|
<ThresholdDetail
|
|
<ThresholdDetail
|
|
current={record.Value || 0}
|
|
current={record.Value || 0}
|
|
@@ -333,6 +331,7 @@ export function DeviceTable(props) {
|
|
{
|
|
{
|
|
title: '状态',
|
|
title: '状态',
|
|
dataIndex: 'Status',
|
|
dataIndex: 'Status',
|
|
|
|
+ width: '1.25rem',
|
|
render: (Status) => {
|
|
render: (Status) => {
|
|
switch (Status) {
|
|
switch (Status) {
|
|
case -1:
|
|
case -1:
|
|
@@ -387,23 +386,23 @@ export function DeviceTable(props) {
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
- useEffect(() => {
|
|
|
|
- console.log('温控', items);
|
|
|
|
- if (isSensor)
|
|
|
|
- UnityAction.sendMsg('PowerEnvironsFromWeb', JSON.stringify(items));
|
|
|
|
- }, [items]);
|
|
|
|
-
|
|
|
|
- if (!isSensor) {
|
|
|
|
- columns.push({
|
|
|
|
- title: '操作',
|
|
|
|
- render: (record) =>
|
|
|
|
- record.Status == 1 && (
|
|
|
|
- <a style={{ color: '#FE5850' }} onClick={() => onClickError(record)}>
|
|
|
|
- 异常处理
|
|
|
|
- </a>
|
|
|
|
- ),
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ // useEffect(() => {
|
|
|
|
+ // console.log('温控', items);
|
|
|
|
+ // if (isSensor)
|
|
|
|
+ // UnityAction.sendMsg('PowerEnvironsFromWeb', JSON.stringify(items));
|
|
|
|
+ // }, [items]);
|
|
|
|
+
|
|
|
|
+ // if (!isSensor) {
|
|
|
|
+ // columns.push({
|
|
|
|
+ // title: '操作',
|
|
|
|
+ // render: (record) =>
|
|
|
|
+ // record.Status == 1 && (
|
|
|
|
+ // <a style={{ color: '#FE5850' }} onClick={() => onClickError(record)}>
|
|
|
|
+ // 异常处理
|
|
|
|
+ // </a>
|
|
|
|
+ // ),
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
|
|
|
|
return (
|
|
return (
|
|
<div>
|
|
<div>
|
|
@@ -648,6 +647,7 @@ export function WarningTable(props) {
|
|
{
|
|
{
|
|
title: '状态',
|
|
title: '状态',
|
|
dataIndex: 'Status',
|
|
dataIndex: 'Status',
|
|
|
|
+ width: '1.25rem',
|
|
render: (Status) => {
|
|
render: (Status) => {
|
|
switch (Status) {
|
|
switch (Status) {
|
|
case -1:
|
|
case -1:
|
|
@@ -702,22 +702,22 @@ export function WarningTable(props) {
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
- if (!isSensor) {
|
|
|
|
- columns.push({
|
|
|
|
- title: '操作',
|
|
|
|
- render: (record) =>
|
|
|
|
- record.Status == 1 && (
|
|
|
|
- <a style={{ color: '#FE5850' }} onClick={() => onClickError(record)}>
|
|
|
|
- 异常处理
|
|
|
|
- </a>
|
|
|
|
- ),
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- useEffect(() => {
|
|
|
|
- if (isSensor)
|
|
|
|
- UnityAction.sendMsg('PowerEnvironsFromWeb', JSON.stringify(items));
|
|
|
|
- }, [items]);
|
|
|
|
|
|
+ // if (!isSensor) {
|
|
|
|
+ // columns.push({
|
|
|
|
+ // title: '操作',
|
|
|
|
+ // render: (record) =>
|
|
|
|
+ // record.Status == 1 && (
|
|
|
|
+ // <a style={{ color: '#FE5850' }} onClick={() => onClickError(record)}>
|
|
|
|
+ // 异常处理
|
|
|
|
+ // </a>
|
|
|
|
+ // ),
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
+ // useEffect(() => {
|
|
|
|
+ // if (isSensor)
|
|
|
|
+ // UnityAction.sendMsg('PowerEnvironsFromWeb', JSON.stringify(items));
|
|
|
|
+ // }, [items]);
|
|
|
|
|
|
return (
|
|
return (
|
|
<div>
|
|
<div>
|
|
@@ -828,12 +828,10 @@ export function LiquidTable(props) {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '液位数',
|
|
title: '液位数',
|
|
- width: '20%',
|
|
|
|
dataIndex: 'origin_value',
|
|
dataIndex: 'origin_value',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '差值',
|
|
title: '差值',
|
|
- width: '16%',
|
|
|
|
dataIndex: 'value',
|
|
dataIndex: 'value',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -852,6 +850,7 @@ export function LiquidTable(props) {
|
|
{
|
|
{
|
|
title: '状态',
|
|
title: '状态',
|
|
dataIndex: 'status',
|
|
dataIndex: 'status',
|
|
|
|
+ width: '1.25rem',
|
|
render: (status) => {
|
|
render: (status) => {
|
|
switch (status) {
|
|
switch (status) {
|
|
case -1:
|
|
case -1:
|
|
@@ -971,11 +970,12 @@ function DosingFlowTable(props) {
|
|
const columns = [
|
|
const columns = [
|
|
{
|
|
{
|
|
title: '设备名称',
|
|
title: '设备名称',
|
|
- width: '1.5rem',
|
|
|
|
|
|
+ width: '20%',
|
|
dataIndex: 'device_name',
|
|
dataIndex: 'device_name',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '类型',
|
|
title: '类型',
|
|
|
|
+ width: '1rem',
|
|
key: 'template_item_name',
|
|
key: 'template_item_name',
|
|
dataIndex: 'template_item_name',
|
|
dataIndex: 'template_item_name',
|
|
},
|
|
},
|
|
@@ -1289,7 +1289,7 @@ function PressureGaugeTable(props) {
|
|
const columns = [
|
|
const columns = [
|
|
{
|
|
{
|
|
title: '设备名称',
|
|
title: '设备名称',
|
|
- width: '15%',
|
|
|
|
|
|
+ width: '20%',
|
|
dataIndex: 'item_alias',
|
|
dataIndex: 'item_alias',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -1439,7 +1439,7 @@ function WaterQualityTable(props) {
|
|
const columns = [
|
|
const columns = [
|
|
{
|
|
{
|
|
title: '设备名称',
|
|
title: '设备名称',
|
|
- width: '15%',
|
|
|
|
|
|
+ width: '20%',
|
|
dataIndex: 'item_alias',
|
|
dataIndex: 'item_alias',
|
|
},
|
|
},
|
|
{
|
|
{
|