|
@@ -15,37 +15,48 @@
|
|
|
@excelChange="funExcelChange" @checkChange="funExcelCheckChange" :theme="theme"></excel-cop>
|
|
|
</div>
|
|
|
<div class="tableDataMain">
|
|
|
- <el-row :style="{ height: tableHeight }">
|
|
|
- <el-col :span="12" v-for="(item, index) in chartData" :key="item.id" style="height: 45%">
|
|
|
- <el-icon :style="!theme ? 'color: #fff' : ''" size="18"
|
|
|
- @click="funActCop(item, 'chartCop' + (index + 1))">
|
|
|
- <ZoomIn />
|
|
|
- </el-icon>
|
|
|
- <chart-cop class="" height="100%" width="100%" :xAxis="item.xAxis" :isRadar="item.isRadar"
|
|
|
- :theme="theme" :echartsTheme="echartsTheme" :subtext="item.subtext" :title="item.title"
|
|
|
- :series="item.series">
|
|
|
- </chart-cop>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12" v-if="!!lineSeries.length" style="height: 50%">
|
|
|
- <el-icon :style="!theme ? 'color: #fff' : ''" size="18"
|
|
|
- @click="funActCop({ xAxis: linexAxis, yAxis: lineyAxis, series: lineSeries, dataset: lineDataSet }, 'lineChartCop')">
|
|
|
- <ZoomIn />
|
|
|
- </el-icon>
|
|
|
- <line-chart-cop class="" height="100%" width="100%" :xAxis="linexAxis" :yAxis="lineyAxis"
|
|
|
- :theme="theme" :echartsTheme="echartsTheme" :series="lineSeries" subtext="对风偏差分析图"
|
|
|
- :dataset="lineDataSet"></line-chart-cop>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12" v-if="!!lineSeries.length" style="height: 50%">
|
|
|
- <el-icon :style="!theme ? 'color: #fff' : ''" size="18"
|
|
|
- @click="funActCop({ xAxis: scatterxData, yAxis: scatteryData, series: scatterSeries }, 'scatterSingleChartCop')">
|
|
|
- <ZoomIn />
|
|
|
- </el-icon>
|
|
|
- <scatter-single-chart-cop class="" height="95%" width="100%" :xAxis="scatterxData"
|
|
|
- :theme="theme" :echartsTheme="echartsTheme" :yAxis="scatteryData"
|
|
|
- :series="scatterSeries" subtext="静态偏航对风分析图">
|
|
|
- </scatter-single-chart-cop>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ <el-tabs v-model="activeTab">
|
|
|
+ <el-tab-pane label="图表展示" name="1">
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="表格数据" name="2">
|
|
|
+ </el-tab-pane>
|
|
|
+ <div v-if="activeTab === '2'" :style="{ height: tableHeight }">
|
|
|
+ <table-cop class="" :data="tableData" :column="tableColumn" :theme="theme"
|
|
|
+ :height="tableHeight" tableId="1" tableName="对风偏差分析"></table-cop>
|
|
|
+ </div>
|
|
|
+ <el-row v-if="activeTab === '1'" :style="{ height: tableHeight }">
|
|
|
+ <el-col :span="12" v-for="(item, index) in chartData" :key="item.id" style="height: 45%">
|
|
|
+ <el-icon :style="!theme ? 'color: #fff' : ''" size="18"
|
|
|
+ @click="funActCop(item, 'chartCop' + (index + 1))">
|
|
|
+ <ZoomIn />
|
|
|
+ </el-icon>
|
|
|
+ <chart-cop class="" height="100%" width="100%" :xAxis="item.xAxis"
|
|
|
+ :isRadar="item.isRadar" :theme="theme" :echartsTheme="echartsTheme"
|
|
|
+ :subtext="item.subtext" :title="item.title" :series="item.series">
|
|
|
+ </chart-cop>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12" v-if="!!lineSeries.length" style="height: 45%">
|
|
|
+ <el-icon :style="!theme ? 'color: #fff' : ''" size="18"
|
|
|
+ @click="funActCop({ xAxis: linexAxis, yAxis: lineyAxis, series: lineSeries, dataset: lineDataSet }, 'lineChartCop')">
|
|
|
+ <ZoomIn />
|
|
|
+ </el-icon>
|
|
|
+ <line-chart-cop class="" height="100%" width="100%" :xAxis="linexAxis"
|
|
|
+ :yAxis="lineyAxis" :theme="theme" :echartsTheme="echartsTheme" :series="lineSeries"
|
|
|
+ subtext="对风偏差分析图" :dataset="lineDataSet"></line-chart-cop>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12" v-if="!!lineSeries.length" style="height: 45%">
|
|
|
+ <el-icon :style="!theme ? 'color: #fff' : ''" size="18"
|
|
|
+ @click="funActCop({ xAxis: scatterxData, yAxis: scatteryData, series: scatterSeries }, 'scatterSingleChartCop')">
|
|
|
+ <ZoomIn />
|
|
|
+ </el-icon>
|
|
|
+ <scatter-single-chart-cop class="" height="95%" width="100%" :xAxis="scatterxData"
|
|
|
+ :theme="theme" :echartsTheme="echartsTheme" :yAxis="scatteryData"
|
|
|
+ :series="scatterSeries" subtext="静态偏航对风分析图">
|
|
|
+ </scatter-single-chart-cop>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-tabs>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -101,6 +112,7 @@
|
|
|
<script setup name="rateAnalysis">
|
|
|
import excelCop from '@/components/generatingCapacityComponent/excel.vue'
|
|
|
import treeCop from '@/components/generatingCapacityComponent/tree.vue'
|
|
|
+ import tableCop from '@/components/generatingCapacityComponent/table.vue'
|
|
|
import chartCop from './components/chart.vue'
|
|
|
import lineChartCop from './components/lineChart.vue'
|
|
|
// import SubmitBtn from '../../../components/SubmitBtn.vue'
|
|
@@ -125,8 +137,9 @@
|
|
|
/**配置参数 */
|
|
|
const treeHeight = ref(window.innerHeight - 116 + 'px') //tree高度
|
|
|
const excelHeight = ref(window.innerHeight - 116 + 'px') //excel高度
|
|
|
- const tableHeight = ref(window.innerHeight - 116 + 'px')
|
|
|
+ const tableHeight = ref(window.innerHeight - 170 + 'px')
|
|
|
/**excel 开始 */
|
|
|
+ const activeTab = ref('1')
|
|
|
const excelCheckIds = ref([])
|
|
|
const excelList = ref([])
|
|
|
//点击excel项时
|
|
@@ -141,6 +154,7 @@
|
|
|
queryForm.checkIds = excelList.value.map(o => o.id)
|
|
|
checkAll.value = true
|
|
|
funSubmit()
|
|
|
+ tableDataGet()
|
|
|
}
|
|
|
const funExcelCheckChange = ({
|
|
|
checkArr,
|
|
@@ -148,6 +162,25 @@
|
|
|
}) => {
|
|
|
excelCheckIds.value = checkArr
|
|
|
}
|
|
|
+ /**表格数据 */
|
|
|
+ const tableData = ref([])
|
|
|
+ const tableColumn = ref([])
|
|
|
+ const tableDataGet = async () => {
|
|
|
+ const res = await httpRequest.get('/wind/show', {
|
|
|
+ params: {
|
|
|
+ id: excelCheckIds.value.join()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ tableColumn.value = res.data.title.map(o => {
|
|
|
+ return {
|
|
|
+ prop: o.key,
|
|
|
+ label: o.des,
|
|
|
+ width: o.des === '时间' ? 100 : 80,
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+ tableData.value = res.data.data
|
|
|
+ }
|
|
|
/**tree 开始 */
|
|
|
const treeData = ref([])
|
|
|
const actTreeNode = ref(null)
|
|
@@ -882,11 +915,11 @@
|
|
|
//
|
|
|
theme.value = store.state.theme
|
|
|
echartsTheme.value = !theme.value ? 'dark' : ''
|
|
|
- tableHeight.value = window.innerHeight - 116 + 'px'
|
|
|
+ tableHeight.value = window.innerHeight - 170 + 'px'
|
|
|
excelHeight.value = (window.innerHeight - 116) + 'px'
|
|
|
treeHeight.value = (window.innerHeight - 116) + 'px'
|
|
|
window.addEventListener('resize', () => {
|
|
|
- tableHeight.value = window.innerHeight - 116 + 'px'
|
|
|
+ tableHeight.value = window.innerHeight - 170 + 'px'
|
|
|
excelHeight.value = (window.innerHeight - 116) + 'px'
|
|
|
treeHeight.value = (window.innerHeight - 116) + 'px'
|
|
|
})
|