diff --git a/hx-ai-intelligent/src/view/monitor/energyMonitor/analysisTable/index.vue b/hx-ai-intelligent/src/view/monitor/energyMonitor/analysisTable/index.vue index 173bbab..a591e61 100644 --- a/hx-ai-intelligent/src/view/monitor/energyMonitor/analysisTable/index.vue +++ b/hx-ai-intelligent/src/view/monitor/energyMonitor/analysisTable/index.vue @@ -36,53 +36,65 @@ { title: '设备/节点', dataIndex: 'name', + align: 'center', }, { title: '统计值', dataIndex: 'value', + align: 'center', }, { title: '同比', + align: 'center', children: [ { title: '△差值', dataIndex: 'yoyDiff', + align: 'center', }, { title: '增长率', dataIndex: 'yoyRate', + align: 'center', }, ], }, { title: '环比', + align: 'center', children: [ { title: '△差值', dataIndex: 'momDiff', + align: 'center', }, { title: '增长率', dataIndex: 'momRate', + align: 'center', }, ], }, { title: '纵向对比', + align: 'center', children: [ { title: '△差值', dataIndex: 'zongxiangDiff', + align: 'center', }, { title: '增长率', dataIndex: 'zongxiangRate', + align: 'center', }, ], }, { title: '操作', + align: 'center', // dataIndex: 'date', }, ]; diff --git a/hx-ai-intelligent/src/view/monitor/energyMonitor/graphTable/index.vue b/hx-ai-intelligent/src/view/monitor/energyMonitor/graphTable/index.vue index 3ac7f2e..ca7d5bf 100644 --- a/hx-ai-intelligent/src/view/monitor/energyMonitor/graphTable/index.vue +++ b/hx-ai-intelligent/src/view/monitor/energyMonitor/graphTable/index.vue @@ -89,6 +89,7 @@ { title: '设备/组名', dataIndex: 'name', + align: 'center', customCell: (record, rowIndex) => { if (rowIndex == undefined) { return { @@ -110,6 +111,7 @@ }, { title: '参数名称', + align: 'center', dataIndex: 'selectedValueName', customCell: (record, rowIndex) => { if (rowIndex == undefined) { @@ -144,7 +146,7 @@ let columnA: any[] = [...column]; let columnB: any[] = []; pageData.graphTableColumns.forEach((item) => { - columnB.push({ title: item, dataIndex: item }); + columnB.push({ title: item, dataIndex: item, align: 'center' }); }); columnA.push(...columnB); columns.value = columnA;