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