zhaohy 1 month ago
parent
commit
f18dad74e7
  1. 12
      hx-ai-intelligent/src/view/monitor/energyMonitor/analysisTable/index.vue
  2. 4
      hx-ai-intelligent/src/view/monitor/energyMonitor/graphTable/index.vue

12
hx-ai-intelligent/src/view/monitor/energyMonitor/analysisTable/index.vue

@ -36,53 +36,65 @@
{ {
title: '设备/节点', title: '设备/节点',
dataIndex: 'name', dataIndex: 'name',
align: 'center',
}, },
{ {
title: '统计值', title: '统计值',
dataIndex: 'value', dataIndex: 'value',
align: 'center',
}, },
{ {
title: '同比', title: '同比',
align: 'center',
children: [ children: [
{ {
title: '△差值', title: '△差值',
dataIndex: 'yoyDiff', dataIndex: 'yoyDiff',
align: 'center',
}, },
{ {
title: '增长率', title: '增长率',
dataIndex: 'yoyRate', dataIndex: 'yoyRate',
align: 'center',
}, },
], ],
}, },
{ {
title: '环比', title: '环比',
align: 'center',
children: [ children: [
{ {
title: '△差值', title: '△差值',
dataIndex: 'momDiff', dataIndex: 'momDiff',
align: 'center',
}, },
{ {
title: '增长率', title: '增长率',
dataIndex: 'momRate', dataIndex: 'momRate',
align: 'center',
}, },
], ],
}, },
{ {
title: '纵向对比', title: '纵向对比',
align: 'center',
children: [ children: [
{ {
title: '△差值', title: '△差值',
dataIndex: 'zongxiangDiff', dataIndex: 'zongxiangDiff',
align: 'center',
}, },
{ {
title: '增长率', title: '增长率',
dataIndex: 'zongxiangRate', dataIndex: 'zongxiangRate',
align: 'center',
}, },
], ],
}, },
{ {
title: '操作', title: '操作',
align: 'center',
// dataIndex: 'date', // dataIndex: 'date',
}, },
]; ];

4
hx-ai-intelligent/src/view/monitor/energyMonitor/graphTable/index.vue

@ -89,6 +89,7 @@
{ {
title: '设备/组名', title: '设备/组名',
dataIndex: 'name', dataIndex: 'name',
align: 'center',
customCell: (record, rowIndex) => { customCell: (record, rowIndex) => {
if (rowIndex == undefined) { if (rowIndex == undefined) {
return { return {
@ -110,6 +111,7 @@
}, },
{ {
title: '参数名称', title: '参数名称',
align: 'center',
dataIndex: 'selectedValueName', dataIndex: 'selectedValueName',
customCell: (record, rowIndex) => { customCell: (record, rowIndex) => {
if (rowIndex == undefined) { if (rowIndex == undefined) {
@ -144,7 +146,7 @@
let columnA: any[] = [...column]; let columnA: any[] = [...column];
let columnB: any[] = []; let columnB: any[] = [];
pageData.graphTableColumns.forEach((item) => { pageData.graphTableColumns.forEach((item) => {
columnB.push({ title: item, dataIndex: item }); columnB.push({ title: item, dataIndex: item, align: 'center' });
}); });
columnA.push(...columnB); columnA.push(...columnB);
columns.value = columnA; columns.value = columnA;

Loading…
Cancel
Save