单风机:冗余清理
This commit is contained in:
parent
a3441e0131
commit
5284f1ab11
@ -249,10 +249,8 @@
|
||||
<el-col :span="24">
|
||||
<el-tabs v-model="trendChartType" class="demo-tabs trend-tabs" @tab-click="tabhandleClick" ref="userTab">
|
||||
<el-tab-pane label="日" name="day">
|
||||
<!-- <div class="trend-chart" :ref="chartRefs.set"></div> -->
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="月" name="month">
|
||||
<!-- <div class="trend-chart" :ref="chartRefs.set"></div> -->
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
<div class="trend-chart" ref="trendChartRef"></div>
|
||||
@ -308,7 +306,7 @@
|
||||
<script setup lang="ts">
|
||||
import { nextTick, onActivated, onMounted, reactive, ref, computed, onBeforeMount, onUnmounted, VNode, VNodeRef } from 'vue'
|
||||
import * as echarts from 'echarts'
|
||||
import { useTemplateRefsList, useEventListener } from '@vueuse/core'
|
||||
import { useEventListener } from '@vueuse/core'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { DArrowRight } from '@element-plus/icons-vue'
|
||||
import { getRealValueListReq, getRealValueRangeReq } from '/@/api/backend/deviceModel/request'
|
||||
@ -352,7 +350,7 @@ const realTimeDataForSingle = ref<any>({
|
||||
ipitchangle: '',
|
||||
iwindspeed: '',
|
||||
})
|
||||
const chartRefs = useTemplateRefsList<HTMLDivElement>()
|
||||
|
||||
const state: {
|
||||
charts: { powerChart: any; temperatureChart1: any; temperatureChart2: any; temperatureChart3: any; frequencyChart: any; trendChart: any }
|
||||
remark: string
|
||||
@ -1265,9 +1263,6 @@ onMounted(() => {
|
||||
initFrequencyChart()
|
||||
useEventListener(window, 'resize', echartsResize)
|
||||
autoUpdate()
|
||||
Promise.resolve().then(() => {
|
||||
console.log(chartRefs.value)
|
||||
})
|
||||
})
|
||||
// onBeforeMount(() => {
|
||||
// const chartKeys = Object.keys(state.charts) as Array<keyof typeof state.charts>
|
||||
|
Loading…
Reference in New Issue
Block a user