main
夜笙歌 1 week ago
parent e1f93a85e5
commit a4d9192e0e

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

Loading…
Cancel
Save