| | |
| | | </el-form> |
| | | </div> |
| | | |
| | | <div class="table-bg-style"> |
| | | <div class="table-bg-style" style="padding-bottom: 12px"> |
| | | <div class="table-box"> |
| | | <el-table :data="energyList" v-loading="loading" border max-height="380px"> |
| | | <el-table-column fixed prop="indexName" label="指标名称" width="210px"> |
| | |
| | | style="margin-right: 8px" |
| | | ></el-button> |
| | | <el-tooltip |
| | | v-if="scope.row.indexName.length > 9" |
| | | v-if="scope.row.indexName && scope.row.indexName.length > 9" |
| | | class="item" |
| | | effect="dark" |
| | | :content="scope.row.indexName" |
| | |
| | | energyList.value = response.data |
| | | if (response.data && response.data.length !== 0) { |
| | | selectChange(response.data[0]) |
| | | } else { |
| | | lineChartData.value = {} |
| | | } |
| | | }) |
| | | } |
| | |
| | | let title = "" |
| | | response.data.forEach((item) => { |
| | | expectedData.push(numFilter(item.value)) |
| | | actualData.push(item.timeCode.slice(item.timeCode.length - 2, item.timeCode.length) + "时") |
| | | actualData.push(item.timeCode.slice(item.timeCode.length - 2, item.timeCode.length) + "月") |
| | | title = item.indexName + "(" + (item.unitId || "") + ")" |
| | | }) |
| | | |
| | |
| | | console.log(expectedData) |
| | | |
| | | lineChartData.value = { |
| | | // xData: [ |
| | | // "0时", |
| | | // "1时", |
| | | // "2时", |
| | | // "3时", |
| | | // "4时", |
| | | // "5时", |
| | | // "6时", |
| | | // "7时", |
| | | // "8时", |
| | | // "9时", |
| | | // "10时", |
| | | // "11时", |
| | | // "12时", |
| | | // "13时", |
| | | // "14时", |
| | | // "15时", |
| | | // "16时", |
| | | // "17时", |
| | | // "18时", |
| | | // "19时", |
| | | // "20时", |
| | | // "21时", |
| | | // "22时", |
| | | // "23时", |
| | | // ], |
| | | xData: actualData, |
| | | yData: expectedData, |
| | | title, |