|
|
@@ -58,18 +58,18 @@ export const sysDataColumn: BasicColumn[] = [
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- title: '设备id',
|
|
|
+ title: '分站id',
|
|
|
dataIndex: 'sub_id',
|
|
|
align: 'center',
|
|
|
ifShow: false,
|
|
|
},
|
|
|
{
|
|
|
- title: '设备名称',
|
|
|
+ title: '分站名称',
|
|
|
dataIndex: 'strName',
|
|
|
align: 'center',
|
|
|
},
|
|
|
{
|
|
|
- title: '数量',
|
|
|
+ title: '数据采集量',
|
|
|
dataIndex: 'total_num',
|
|
|
align: 'center',
|
|
|
},
|
|
|
@@ -102,6 +102,12 @@ export const accessStatusColumn: BasicColumn[] = [
|
|
|
title: '运行状态',
|
|
|
dataIndex: 'netStatus',
|
|
|
align: 'center',
|
|
|
+ // 添加状态转换逻辑
|
|
|
+ customRender: ({ record }) => {
|
|
|
+ // 将状态值转为数字进行判断
|
|
|
+ const status = Number(record.netStatus);
|
|
|
+ return status === 1 ? '正常' : '断开';
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
title: '数据更新时间',
|
|
|
@@ -126,6 +132,7 @@ export const dailyNumOption: ModuleDataChart = {
|
|
|
series: [{ readFrom: 'collectDataByDayList', xprop: 'day', yprop: 'total_count', label: '' }],
|
|
|
};
|
|
|
|
|
|
+// 模拟设备数据
|
|
|
export const deviceData = {
|
|
|
monitorParamsCount: 1727,
|
|
|
deviceCount: 4,
|