diff --git a/src/views/ems/report/energyPreview/index.vue b/src/views/ems/report/energyPreview/index.vue index 6912902..db11599 100644 --- a/src/views/ems/report/energyPreview/index.vue +++ b/src/views/ems/report/energyPreview/index.vue @@ -112,6 +112,7 @@ header-cell-class-name="columnClassName" id="bootstrap-table" v-loading="loading" + row-key="objId" :data="dataList" @selection-change="handleSelectionChange" > @@ -157,7 +158,7 @@ import { getYearsBetween } from '@/utils/dateReportUtils.js' import { handleExport } from '@/utils/export.js' -import { parseTime } from '@/utils/ruoyi' +import {handleTree, parseTime} from '@/utils/ruoyi' let data = {} let optionData = {} @@ -436,7 +437,7 @@ export default { myChart.setOption(option) energyPreviewReportList(this.queryParams).then((response) => { - this.dataList = response.data + this.dataList = this.handleTree(response.data,'objId') this.loading = false const data = response.data || []